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
guys! I've faced that weird error today. It happened because of I had a Schema with ref
properties and tried to pass in create
/update
whole related document. I've changed argument to _id
only and that did the trick. Works like a charm. I found the answer here (scroll down to February 21, 2013, 8:05 pm gustavohenke
comment).