Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GraphiQL initial tabs #3323

Closed
jens1101 opened this issue Jun 12, 2024 · 2 comments
Closed

Add support for GraphiQL initial tabs #3323

jens1101 opened this issue Jun 12, 2024 · 2 comments

Comments

@jens1101
Copy link

Is your feature request related to a problem? Please describe.

I would like to add example queries and mutations for our project. GraphiQL has support for setting default tabs which is ideal for this use case. Unfortunately I don't see this option exposed in Yoga's options.

Describe the solution you'd like

I would like for defaultTabs to be added to the graphiql options.

Describe alternatives you've considered

I tried to add defaultTabs to the graphiql options when creating the Yoga server and ignore the TS errors, however that didn't work. The option doesn't seem to thread through to the GraphiQL component.

@EmrysMyrddin
Copy link
Collaborator

This should be now possible with latest version :-)

@jens1101
Copy link
Author

@EmrysMyrddin Awesome! I confirmed it working in the latest version. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants