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

Default values for arguments are not used #67

Closed
aweiker opened this issue Mar 3, 2016 · 2 comments
Closed

Default values for arguments are not used #67

aweiker opened this issue Mar 3, 2016 · 2 comments

Comments

@aweiker
Copy link
Member

aweiker commented Mar 3, 2016

I setup a simple query that took set a default value, then did not set the input variable and it should have used the default value.

Query:

query name($name: String = "Joe")
{
  greeting(name: $name)
}

If I set $name then the query executes, but if I don't the value is empty.

I tested this against the node version and it performed as expected.

@joshprice
Copy link
Member

This was working in GraphQL fine, but seems to be broken in the playground. Pushing an update which should fix this now.

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