Any good reference of mongoosejs?
题
somehow, it 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);
不隶属于 StackOverflow