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

Allow introspection of default args for built-in scalars #99

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ozanmakes
Copy link
Contributor

I made a quick attempt to add default values for arguments to the introspection query. Only covers built-in scalars for now.

I couldn't figure out if this information is already available in the introspection resolvers, so I added a new parameter to Arg.scalar. This will break backwards compatibility for people using custom scalar arguments, to avoid this I can make this argument optional. Please let me know if this is in the right direction.

Here's what it looks like in GraphiQL:

screenshot from 2018-07-24 22-33-37

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.

1 participant