why the _id duplicate?
{ "_id" : ObjectId("579c51d107621eb62ef1f1f2"), "roleId" : "56823", "runePages" : [ { "_id" : ObjectId("57d2cdab383c044802428950"), "usePassiveSkills" : [], "inlayRunes" : [], "name" : "符石页1", "pageId" : 1 }, { "_id" : ObjectId("57d2cdab383c044802428951"), "usePassiveSkills" : [], "inlayRunes" : [], "name" : "符石页2", "pageId" : 2 }, { "_id" : ObjectId("57d2cdab383c044802428950"), "usePassiveSkills" : [], "inlayRunes" : [], "name" : "符石页1", "pageId" : 1 }, { "_id" : ObjectId("57d2cdab383c044802428951"), "usePassiveSkills" : [], "inlayRunes" : [], "name" : "符石页2", "pageId" : 2 } ] }
what's the id generation rules?
From the MongoDB documentation:
ObjectId(
What's the code that you use to insert the documents?
How are you generating the ids?