-
-
Notifications
You must be signed in to change notification settings - Fork 565
[BUG] Input type default value not set #350
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
Comments
Default values for input type fields are not supported in the reference implementation yet. They must implement it first. At the moment you have to define defaultValue at the field level of your parent object type. And it provides some ambiguity which has to be described in the spec first. |
@vladar Thank you for checking this! Got it! |
@vladar |
input Input1 {
a: String = "a"
b: String = "b"
}
input Input2 {
a: Input1 = { a: "b" }
} In the example above - what value will be in |
@vladar You're right…! will this be clarified in the spec in the future? |
I've posted a link in my first reply where you can track this. I suggest re-opening it after related spec updates are published. |
@yaquawa i think i stumbled upon the issue you were having, from the looks of it while working on the same thing 😉 What i found is that the |
Hi
Thanks for the great work!!
I'm using version : ^0.12 of graphql-php
and I found that seems like the default value of input type won't work.
For example:
Hope this can be fixed.👍🏼
The text was updated successfully, but these errors were encountered: