mLab is happy to provide driver examples in many of the major languages: C#, Java, Node.js, PHP, Python, and Ruby.
These examples should run outright after you install the appropriate drivers and insert your MongoDB URI. For additional information, see MongoDB, Inc.’s documentation about MongoDB drivers.
Currently, we illustrate a simple connection with authentication and query examples. If you have suggestions for other types of examples or languages, contact us at firstname.lastname@example.org to let us know.
The officially supported C# / .NET driver driver for MongoDB:
The officially supported Java driver for MongoDB:
The officially supported Node.js Native driver for MongoDB:
Mongoose, an Object Document Mapper (ODM) for MongoDB:
The officially supported PHP driver for MongoDB:
Pymongo, the officially supported Python driver for MongoDB:
The officially supported Ruby driver for MongoDB:
Mongoid, an Object Document Mapper (ODM) for MongoDB: