Replies: 3 comments 13 replies
-
@benjie I think you're right. If a query author doesn't believe their feature works when @captbaritone @josephsavona does it still work with Relay's fragment isolation plan if all fields between |
Beta Was this translation helpful? Give feedback.
-
I agree with @benjie that the semantics of error boundaries is strange. My point is that Relay's However, I don't think we should create parallel error boundaries (parallel to client code, e.g. react error boundaries) in GraphQL itself I think correct relay behavior is optimal and we should preserve it. |
Beta Was this translation helpful? Give feedback.
-
I wrote my concerns up in more detail here: graphql/nullability-wg#2 (comment) |
Beta Was this translation helpful? Give feedback.
-
@twof Now that CCN doesn't simply change the nullability of a field, the intent of how certain cases should be handled is less clear to me. The current spec edits state:
Consider the following:
Should
a.b.c
be null, then the result should be{a: null}
due to the throw/catch nature of!
/?
.However, if
a.b
is null the spec seems to indicate that{a:{b: null}}
acceptable even thougha.b.c
is not present. It seems confusing that if this is acceptable, why is it not also an acceptable solution to the situation wherea.b.c
alone was null?Previously we've discussed the idea that
!
might make all field from the nearest?
(or the root) to the!
field non-nullable also - i.e.!
would guarantee that if the container (?
field, or root) is present, then the full path exists, gaining consistency. Maybe this would be a good solution to this seeming inconsistency?Personally, I'd be happy if
!
and?
went back to just setting the effective nullability of the field and having no further behaviours associated.Beta Was this translation helpful? Give feedback.
All reactions