Closed thanhlmm closed 7 years ago
Hey @nlug, _id
is the mongoose identifier and id
is a unique identifier across all types which is also encodes the model type. It was needed for the Relay support to have globally unique ids.
https://github.com/RisingStack/graffiti-mongoose/blob/1d1f6d1d3d18c52da969ef9694c8b6a619679170/src/query/query.js#L99
Overview of the Issue
I can see we can use both
id
or_id
to query some document. But with one is refer to? I checked out in my monbodb data that it only store_id
. Then id is maped base on_id
? If yes, how to generate id from_id