MongoDB Query Document Tutorials

MongoDB Query Document

This tutorial will help you to get a clear understanding to use the query operations using the db.collection.find() function.Sample CollectionQuery DocumentsQuery on Embedded/Nested DocumentsQuery an ArrayQuery an Array of Embedded DocumentsSample CollectionI am going to use the below `books` collection for all the sample query. db.books.insertMany([ { "name" : "The Little Prince", "author" : { "name" : "Antoine de Saint-Exupery", "born" : 1900, "died" : 1944, "occupation" : ["Aviator", "writer"] […]... Read More »