Reputation:
The MongoDB docs seem good overall, the only issue I have is that it uses the console syntax in the reference.
I do not understand why they chose to use that, because it's completely useless to every developer that needs to talk to the DB over the network. What I would need is how the commands are issued in their BSON/JSON form (e.g. db.collection.ensureIndex
).
Are there any better references for that, except messing around with the driver source?
Upvotes: 1
Views: 254
Reputation: 230551
It's the only logical choice. The common denominator, so to say. Everyone is expected to be familiar with javascript api (shell language).
Documentation on how to use certain drivers is also provided in the drivers' section. Here's one for Ruby, for example.
I, personally, find it annoying when people post questions on mongodb and provide code in PHP (or Java, or another language that I am not too familiar with). In majority of cases, the question or problem is not driver related and can as easily be expressed with javascript api, which everybody can understand.
Upvotes: 5