Bug: node always have `id` even if `key` is set to something else
mxstbr opened this issue · comments
Max Stoiber commented
Jovi De Croock commented
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
Max Stoiber commented
Ohh, that makes a ton of sense!