阅读背景:

如何在Mongoose中将_id设置为db文件?

来源:互联网 

I'm trying to dynamically create _id's for my Mongoose models by counting the documents in the db, and using that number to create the _id (assuming the first _id is 0). However, I can't get the _id to set from my values. Here's my code:I'm trying to dynamically create _id's for my M




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: