UNPKG

1.46 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.apolloClientSchemaDocument = exports.apolloClientSchema = void 0;
4const document_1 = require("../document");
5const graphql_1 = require("graphql");
6exports.apolloClientSchema = `#graphql
7"""
8Direct the client to resolve this field locally, either from the cache or local resolvers.
9"""
10directive @client(
11 """
12 When true, the client will never use the cache for this value. See
13 https://www.apollographql.com/docs/react/essentials/local-state/#forcing-resolvers-with-clientalways-true
14 """
15 always: Boolean
16) on FIELD | FRAGMENT_DEFINITION | INLINE_FRAGMENT
17
18"""
19Export this locally resolved field as a variable to be used in the remainder of this query. See
20https://www.apollographql.com/docs/react/essentials/local-state/#using-client-fields-as-variables
21"""
22directive @export(
23 """
24 The variable name to export this field as.
25 """
26 as: String!
27) on FIELD
28
29"""
30Specify a custom store key for this result. See
31https://www.apollographql.com/docs/react/advanced/caching/#the-connection-directive
32"""
33directive @connection(
34 """
35 Specify the store key.
36 """
37 key: String!
38 """
39 An array of query argument names to include in the generated custom store key.
40 """
41 filter: [String!]
42) on FIELD
43`;
44exports.apolloClientSchemaDocument = new document_1.GraphQLDocument(new graphql_1.Source(exports.apolloClientSchema));
45//# sourceMappingURL=defaultClientSchema.js.map
\No newline at end of file