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 }}
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
I believe it's a bug that noise is marked as optional here. Noise is guaranteed for all Animals, and therefore all Dogs (graphql forces all sub-type to be sub-classed & to have matching nullability).
you're exactly right! i was thinking that as long as every non-abstract type of animal was accounted for & requested noise that it would be guaranteed, which still holds true! But I guess that tightly couples the nullability to the resolveType of animal, which would put it in the same annoying boat as enums that aren't future proof.
OK bear with me on this one: All
Animals
makenoise
. ADog
is anAnimal
. ABark
is the kind ofNoise
aDog
makes.IDL:
fragment:
artifact:
I believe it's a bug that
noise
is marked as optional here. Noise is guaranteed for all Animals, and therefore all Dogs (graphql forces all sub-type to be sub-classed & to have matching nullability).This seems very close to #64, but it's a little nuanced since it only crops up when 2 interfaces are used.
Reproduction branch is here: https://github.com/mattkrick/relay-compiler-language-typescript/tree/double-int-null/example
The text was updated successfully, but these errors were encountered: