Replies: 1 comment 1 reply
-
Changing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider the following:
With the variables:
shouldDefer: null
implies it shouldn't be deferred to the casual observer, but equally@defer(if: null)
feels like it should be equivalent to@defer
- it's not clear what the right behaviour should be here. The spec is inconsistent on this matter.Since GraphQL doesn't differentiate between requiredness and nullability, maybe this should be
@defer(unless: Boolean)
instead? Or we could explicitly forbidnull
via@defer(if: Boolean! = true)
or similar?At the very least, what to do on
null
should be explicitly specified.(Same arguments for
@stream
of course.)Related comments on the spec PR: graphql/graphql-spec#742 (review)
Beta Was this translation helpful? Give feedback.
All reactions