Skip to content

Commit

Permalink
fix: deprecated instead of remove option
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanpt-0634 committed Nov 29, 2022
1 parent 4f7370f commit f5cc228
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/graphql-yoga/src/plugins/useGraphiQL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export type GraphiQLOptions = {
* will use its own default query.
*/
defaultQuery?: string
/**
* Whether to open the variable editor by default. Defaults to `true`.
*
* @deprecated Obsolete option. Variable editor was opened by default
*/
defaultVariableEditorOpen?: boolean
/**
* The initial headers to render inside the header editor. Defaults to `"{}"`.
* The value should be a JSON encoded string, for example:
Expand All @@ -24,6 +30,12 @@ export type GraphiQLOptions = {
* More info there: https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials
*/
credentials?: RequestCredentials
/**
* Whether the header editor is enabled. Defaults to `true`.
*
* @deprecated Obsolete option. Header editor was enabled by default
*/
headerEditorEnabled?: boolean
/**
* The title to display at the top of the page. Defaults to `"Yoga GraphiQL"`.
*/
Expand Down

0 comments on commit f5cc228

Please sign in to comment.