If you have subdocument arrays, Mongoose automatically creates ids for each one. Example: { _id: "mainId"