Closed mxstbr closed 9 months ago
the key prop is used to generate the id property. A node needs a key and you are telling us that we can generate that from username. This is intended behaviour, it's true however that a nullable field should warn in ts.
We translate __typename:values[key] to the id property
Ohh, that makes a ton of sense!
Description
My
User
type has ausername
key. The underlying data does not have anid
. Yet, the generated GraphQL object type hasUser.id
even though that field doesn't exist.User.username
is also nullable in the GraphQL schema even though it is thekey
.