This git repository includes mongodb connection and query examples for the following:
-
C# http://docs.mongodb.org/ecosystem/drivers/csharp/
-
Java http://docs.mongodb.org/ecosystem/drivers/java/
-
Node.js https://mongodb.github.io/node-mongodb-native/
-
Node.js (Mongoose) http://mongoosejs.com/
-
PHP http://docs.mongodb.org/ecosystem/drivers/php/
-
Python (using pymongo) http://docs.mongodb.org/ecosystem/drivers/python/
-
Ruby https://docs.mongodb.com/ruby-driver/master/
-
Ruby (Mongoid) https://docs.mongodb.com/ruby-driver/master/mongoid/
These examples should run outright after you install the appropriate drivers and insert your MongoDB URI. See https://docs.mongodb.com/manual/installation/ for guidance.
We hope these are helpful and appreciate your feedback!
Sincerely,
The mLab Team