Skip to content

Does GraphiQL support passing a prop to automatically open the documentation explorer to a specific query or type? #2396

Open
@klinskyc

Description

@klinskyc

As mentioned in the title, I am looking to pass in a prop to the GraphiQL component so that it automatically launches with a specific documentation explorer page open. This is similar to what is currently supported with the query propr.

Example of what I mean

React.createElement(GraphiQL, {
  fetcher: graphQLFetcher,
  defaultVariableEditorOpen: true,
  docExplorerOpen: true,
  openDocPage: "UserType"
  }),

Is something like this possible today? If not, what file would be edited to allow for this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions