3 ms·
thing { id } comes from the Relay specification and it can well be a URI: Node Interface The server must provide an interface called Node. That interface mus
by tuukkah 7y ago
thing { id } comes from the Relay specification and it can well be a URI:
Node Interface
The server must provide an interface called Node. That interface must include exactly one field, called id that returns a non‐null ID.
This id should be a globally unique identifier for this object, and given just this id, the server should be able to refetch the object.
https://facebook.github.io/relay/graphql/objectidentification.htm#sec-Node-Interface https://facebook.github.io/relay/graphql/objectidentificatio...
- sbr464 7y agoI agree, and don't mind, We've just decided to add in both fields thing_id & thing, for parsing convenience.
- tuukkah 7y agoI guess most schema designs wouldn't duplicate each field just for that convenience, as it doubles the number of fields in documentation, autocompletes etc. as well.
- deleted 7y ago[deleted]