Skip to content
Discussion options

You must be logged in to vote

Null propagation through non-null types is part of the GraphQL spec.

Would you like to end up with null as the bad customer's email? In that case, declare the email field as nullable (eg String instead of String!).

Would you like the bad customer's entry in the list to end up null (alongside other entries which are non-null objects)? In that case, declare the customers field as [Customer] (or perhaps [Customer]!) rather than as [Customer!].

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@camjackson
Comment options

@glasser
Comment options

@camjackson
Comment options

@camjackson
Comment options

Answer selected by camjackson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants