You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Validator does not catch missing value parameters #308
Activity
bbakerman commentedon Jan 30, 2017
Can you expand more on what your expectations are here?
I think your are right in that the spec says 👍
http://facebook.github.io/graphql/#sec-Validation.Arguments
that arguments with a non null "type" should not allowed to be non null at runtime.
scf37 commentedon Jan 30, 2017
I expected error about missing arguments.
Does nullable type of field argument imply default value of null?
bbakerman commentedon Jan 30, 2017
I think I have it wrong. The library requires you to wrap the type in a GraphQLNonNull type first
so
Thats the equivalent of the JS implementation where you use !
So by default the Java API assumes its not required
bbakerman commentedon Jan 30, 2017
GraphQLNonNull should have a factory for static import so you could do
and hence
graphql-java#308 - males for a more fluent description of the schema
graphql-java#308 - missing readme updates
graphql-java#308 - corrected readme
Merge pull request #311 from bbakerman/308-factory-method-for-non-null
okorz001 commentedon Feb 10, 2017
It seems this issue could be closed?
Merge remote-tracking branch 'upstream/master' into bg