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

Support non primitive types for default value #914

Merged
merged 1 commit into from
Dec 18, 2018

Conversation

pantharshit00
Copy link
Contributor

@pantharshit00 pantharshit00 commented Dec 15, 2018

Fixes #903.

We now run JSON.stringify on type.default so that it is always a string and can be displayed.

There is no chance there will a circular object in the default values so this should fix the current problem

@huv1k
Copy link
Collaborator

huv1k commented Dec 18, 2018

@pantharshit00 Thanks for PR! It will be in next release. 🚀

@huv1k huv1k merged commit 562e1ef into graphql:master Dec 18, 2018
cgxxv pushed a commit to cgxxv/graphql-playground that referenced this pull request Mar 25, 2022
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

Successfully merging this pull request may close these issues.

Inputs which use non-primitive default values crash the playground
2 participants