You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the same problem as in #7, but the id field wasn't created at all. The code is in #83. Model Foo uses .save() and the fooId field gets created. Model Bar uses .insertMany() and the barId field doesn't get created at all. (I tried new Bar(...).save() and that did create the barIds correctly.)
@ramiel, is it possible that #7 has reappeared? Or was it not possible to fix that issue and the workaround is to use the slow .create()?
Hi guys, as title, has anyone got this issue like me ?
I have a productSchema and plugged autoIncrement
Use .save it works well, _Id field value is a Number
Use .insertMany, _id field is ObjectID not a Number
The text was updated successfully, but these errors were encountered: