-
Notifications
You must be signed in to change notification settings - Fork 45
Mutations: When non-null fields are not specified, the query should report errors #56
Comments
I think there is a todo in the executor that mentions this if you want to investigate |
I was planning on digging in this weekend or next week. Sent from my iPad
|
For more info here is what the Node implementation returns when not providing an id param and also when passing in unknown args:
|
Is somebody currently working on this? Otherwise I started working on adding some error and null checking and could probably get it done this week. |
This is being handled as a part of validation. -Aaron
|
@aweiker Is this still in progress? Do you guys need any help? |
I believe this is done as a part of #82. |
@aweiker okay cool, is there an example or a way to add errors to the error list that gets returned to the client? |
With the latest version you actually need to raise an error in order for it to get added to the error result. Prior to this refactoring you could return an error tuple. |
@aweiker raising an error worked great. Thank you for the clarification! |
Currently if a non-null field is no specified in the mutation, the mutation will still execute even though it should return an error.
http://facebook.github.io/graphql/#sec-Non-Null
GraphiQL will indicate that the query is bad, but it will still submit it and the query will get executed.
The text was updated successfully, but these errors were encountered: