Language Center
Overview
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 support@mlab.com to let us know.
CSharp
The officially supported C# / .NET driver driver for MongoDB:
Java
The officially supported Java driver for MongoDB:
Node.js
The officially supported Node.js Native driver for MongoDB:
Mongoose, an Object Document Mapper (ODM) for MongoDB:
- Mongoose CRUD example
- Mongoose Tips & Tricks (from mLab’s blog)
PHP
The officially supported PHP driver for MongoDB:
- CRUD example
- PHP Driver Tips & Tricks (from mLab’s blog)
Python
Pymongo, the officially supported Python driver for MongoDB:
Ruby
The officially supported Ruby driver for MongoDB:
Mongoid, an Object Document Mapper (ODM) for MongoDB: