You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/options.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,12 +80,14 @@
80
80
-`onlyPersisted`: Boolean. Flag to control whether to allow graphql queries other than persisted. When `true`, it'll make the server reject any queries that are not present in the `persistedQueries` option above. It will also disable any ide available (graphiql). Requires `persistedQueries` to be set, and overrides `persistedQueryProvider`.
81
81
-`persistedQueryProvider`
82
82
-`isPersistedQuery: (request: object) => boolean`: Return true if a given request matches the desired persisted query format.
83
+
-`isPersistedQueryRetry: (request: object) => boolean`: Return true if a given request matches the desired persisted query retry format.
83
84
-`getHash: (request: object) => string`: Return the hash from a given request, or falsy if this request format is not supported.
84
85
-`getQueryFromHash: async (hash: string) => string`: Return the query for a given hash.
85
86
-`getHashForQuery?: (query: string) => string`: Return the hash for a given query string. Do not provide if you want to skip saving new queries.
86
87
-`saveQuery?: async (hash: string, query: string) => void`: Save a query, given its hash.
87
88
-`notFoundError?: string`: An error message to return when `getQueryFromHash` returns no result. Defaults to `Bad Request`.
88
89
-`notSupportedError?: string`: An error message to return when a query matches `isPersistedQuery`, but returns no valid hash from `getHash`. Defaults to `Bad Request`.
90
+
-`mismatchError?: string`: An error message to return when the hash provided in the request does not match the calculated hash. Defaults to `Bad Request`.
89
91
-`allowBatchedQueries`: Boolean. Flag to control whether to allow batched queries. When `true`, the server supports recieving an array of queries and returns an array of results.
90
92
91
93
-`compilerOptions`: Object. Configurable options for the graphql-jit compiler. For more details check https://github.com/zalando-incubator/graphql-jit
0 commit comments