mongodb-getting-started icon indicating copy to clipboard operation
mongodb-getting-started copied to clipboard

Some examples of how to use the MongoDB Java driver, via unit tests.

Getting started with MongoDB and Java

Step by step examples (via unit tests) of how to do simple operations with the 2.12 version of the MongoDB Java driver. Use this code to play along with the Getting Started guides:

Getting Started with MongoDB and Java: Part I
Getting Started with MongoDB and Java: Part II