简体   繁体   中英

MongoDB documentation confusing

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 (eg db.collection.ensureIndex ).

Are there any better references for that, except messing around with the driver source?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM