I have one collection, with document id set as MongoDb object identifiers (therefore they appear in db as:
Collection1 "someId": { "$oid": "5003cb802e28076412000001" },
In another collection, I refer to them. However, sometimes these links are apparently stored as regular veins:
Collection 2 "someForiegnId": { "$oid": "5003cb802e28076412000001" },
But in other cases, they turned it into db like a regular string.
Collection 2 "someForiegnId": "5003cb802e28076412000001",
My question is - Is it important to store these external links in oid format, or can they just be strings?
source share