fancy
fancy

Reputation: 51393

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

I've found that Mongoose 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.

Upvotes: 0

Views: 448

Answers (1)

Gates VP
Gates VP

Reputation: 45287

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.

Upvotes: 1

Related Questions