开发者

Any good reference of mongoosejs?

开发者 https://www.devze.com 2023-03-23 00:57 出处:网络
somehow, it 开发者_StackOverflow中文版is quite hard to find informationin mongoose official site.I\'m wondering is there any tutorial or reference site?

somehow, it 开发者_StackOverflow中文版is quite hard to find information in mongoose official site. I'm wondering is there any tutorial or reference site?

Also, the one particular question is, how to run update() in mongoose. :)


I used Mongoose for a project, and yes, the documentation is quite lacking. But here is the API, it helped me a a lot, just see what functions there are and how they work. http://mongoosejs.com/docs/api.html

Also, I just recently switched to using Mongolian, even though it's more of just an access layer to Mongo instead of a fuller ORM like Mongoose. I prefer Mongolian, try it out!


Also, the one particular question is, how to run update() in mongoose. :)

You should be able to do:

Record.update({_id: rid}, {$push:{specs: uuid}}, callback); 
0

精彩评论

暂无评论...
验证码 换一张
取 消