Mongoose - RangeError: Maximum Call Stack Size Exceeded

后端 未结 7 2266
遇见更好的自我
遇见更好的自我 2020-12-08 14:38

I am trying to bulk insert documents into MongoDB (so bypassing Mongoose and using the native driver instead as Mongoose doesn\'t support bulk insert of an array of document

7条回答
  •  余生分开走
    2020-12-08 15:06

    This also happens if there's a duplication of of the _id value. Most situations will be when you might create an new record from an existing record.

    Deleting the _id and inserting the record and letting Mongoose/MongoDb take care of the creation of the id.

提交回复
热议问题