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
|`fetcher`|[`Fetcher function`](https://graphiql-test.netlify.app/typedoc/modules/graphiql-toolkit.html#fetcher)|**Required.** a function which accepts GraphQL-HTTP parameters and returns a Promise, Observable or AsyncIterable which resolves to the GraphQL parsed JSON response. ||
195
-
|`schema`|[`GraphQLSchema`](https://graphql.org/graphql-js/type/#graphqlschema)| a GraphQLSchema instance or `null` if one is not to be used. If `undefined` is provided, GraphiQL will send an introspection query using the fetcher to produce a schema. |
196
-
|`query`|`string` (GraphQL) | initial displayed query, if `undefined` is provided, the stored query or `defaultQuery` will be used. You can also set this value at runtime to override the current operation editor state. |
197
-
|`validationRules`|`ValidationRule[]`| A array of validation rules that will be used for validating the GraphQL operations. If `undefined` is provided, the default rules (exported as `specifiedRules` from `graphql`) will be used. |
198
-
|`variables`|`string` (JSON) | initial displayed query variables, if `undefined` is provided, the stored variables will be used. |
199
-
|`headers`|`string`| initial displayed request headers. if not defined, it will default to the stored headers if `shouldPersistHeaders` is enabled. |
200
-
|`externalFragments`|`string \| FragmentDefinitionNode[]`| provide fragments external to the operation for completion, validation, and for selective use when executing operations. |
201
-
|`operationName`|`string`| an optional name of which GraphQL operation should be executed. |
202
-
|`response`|`string` (JSON) | an optional JSON string to use as the initial displayed response. If not provided, no response will be initially shown. You might provide this if illustrating the result of the initial query. |
203
-
|`storage`|[`Storage`](https://graphiql-test.netlify.app/typedoc/interfaces/graphiql.storage.html)|**Default:**`window.localStorage`. an interface that matches `window.localStorage` signature that GraphiQL will use to persist state. |
204
-
|`defaultQuery`|`string`|**Default:** graphiql help text. Provides default query if no user state is present. | default graphiql help text |
205
-
|`defaultVariableEditorOpen`|`boolean`| sets whether or not to show the variables pane on startup. overridden by user state (**deprecated** in favor of `defaultSecondaryEditorOpen`) |
206
-
|`defaultSecondaryEditorOpen`|`boolean`| sets whether or not to show the variables/headers pane on startup. If not defined, it will be based off whether or not variables and/or headers are present. |
207
-
|`getDefaultFieldNames`|`Function`|**Default:**`defaultGetDefaultFieldNames`. provides default field values for incomplete queries |`defaultGetDefaultFieldNames`|
208
-
|`editorTheme`|`string`|**Default:**`graphiql`. names a CodeMirror theme to be applied to the `QueryEditor`, `ResultViewer`, and `Variables` panes. See below for full usage. |
209
-
|`readOnly`|`boolean`| when `true` will make the `QueryEditor` and `Variables` panes readOnly. |
210
-
|`dangerouslyAssumeSchemaIsValid`|`boolean`|**Default:**`false`. When true, don't check that the loaded schema is valid; this can make the app vulnerable to XSS attacks and is not recommended. |
211
-
|`docExplorerOpen`|`boolean`| when `true` will ensure the `DocExplorer` is open by default when the user first renders the component. Overridden by user's toggle state |
212
-
|`headerEditorEnabled`|`boolean`|**Default:**`true`. enables the header editor when `true`. |
213
-
|`shouldPersistHeaders`|`boolean`|**Default:**`false`. o persist headers to storage when `true`|
214
-
|`toolbar.additionalContent`|`React.Component[]`| pass additional toolbar react components inside a fragment |`null`|
215
-
|`onEditQuery`|`Function`| called when the Query editor changes. The argument to the function will be the query string. |
216
-
|`onEditVariables`|`Function`| called when the Query variable editor changes. The argument to the function will be the variables string. |
217
-
|`onEditHeaders`|`Function`| called when the request headers editor changes. The argument to the function will be the headers string. |
218
-
|`onEditOperationName`|`Function`| called when the operation name to be executed changes. |
219
-
|`onToggleDocs`|`Function`| called when the docs will be toggled. The argument to the function will be a boolean whether the docs are now open or closed. |
220
-
|`maxHistoryLength`|`number`|**Default:** 20. allows you to increase the number of queries in the history component | 20 |
190
+
For props documentation, see the [API Docs](https://graphiql-test.netlify.app/typedoc/modules/graphiql.html#graphiqlprops)
221
191
222
192
### Children (this pattern will be dropped in 2.0.0)
0 commit comments