Created
April 3, 2015 16:29
-
-
Save dalmat36/4b516c54dee18f2b5892 to your computer and use it in GitHub Desktop.
This code snippet inserts three people documents into the MongoDB "people" collection and prints out all people in the collection.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| collection.insertOne(person1); | |
| collection.insertOne(person2); | |
| collection.insertOne(person3); | |
| System.out.println("Result After Insert\n"); | |
| printAllPeople(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment