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);
精彩评论