-
Notifications
You must be signed in to change notification settings - Fork 527
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
Introspecting complex default values raises Protocol.UndefinedError #490
Comments
This does appear to be a bug, based on my reading of http://facebook.github.io/graphql/October2016/#sec-The-__InputValue-Type "defaultValue may return a String encoding (using the GraphQL language) of the default value used by this input value in the condition a value is not provided at runtime. If this input value has no default value, returns null." I'd take a wild bet we haven't seen this before because this is the first complex default value someone's tried to introspect. |
We also ran into this recently... |
@bruce @binaryseed Has this fix been released yet? I'm running field :performances, list_of(non_null(:performance)) do
arg :filter, :performance_filter, default_value: %{}
...
end
input_object :performance_filter do
field :stage_date, :date
field :stage_id, :id
end Reloading the schema in GraphQL Playground causes the following console output:
Am I missing anything here? Any pointers are greatly appreciated 🙂 |
@richeterre this fix is in the 1.5 series of releases, we may not have back ported it to 1.4 |
A fix will be included in Absinthe v1.5, so after upgrading we can again set an empty map as the default value for performance filters. See issue: absinthe-graphql/absinthe#490
hi guys ~
i am using
default_value
ininput_object
, it worked , but there some error in console when i refresh the schema in graphql-playground ..error detail:
The text was updated successfully, but these errors were encountered: