开发者

Why did Mongoose ORM choose not to use regular mongo syntax for finding, sorting, etc?

I've found that M开发者_高级运维ongoose syntax isn't very well documented yet where as Mongo docs are much better. Just wondering what the advantage of the changes are so I can take full advantage of them.


I've found that Mongoose syntax isn't very well documented yet where as Mongo docs are much better.

The MongoDB documentation is maintained by the paid staff at 10gen. 10gen is also the primary maintainer of several major drivers (C#, PHP, Java, Ruby, etc.)

However, looking at the MongoDB node.js page, all of these products are currently community-supported. So they are maintained by a different set of people who may not be getting paid for their work.

Mongoose is a relatively new product, so let's not be too hard on them :)

Why did Mongoose ORM choose not to use regular mongo syntax for finding, sorting, etc?

It looks like Mongoose is trying to be an "ORM" (or ODM) over top of the existing drivers. ORMs don't always implement all of the same features.

However, I'm not the expert here. Mongoose has a relatively active Google Group. That may be the best place to answer this question.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜