
Explore MongoDB fundamentals by guiding software developers from installation to writing simple to complex queries.
All the example code used in the videos and the resources (data for importing) are available in the zip file "examples-and-resources.zip".
Please extract the same for your use.
Insert documents into a contact collection, perform bulk inserts, and use find with pretty to view multiple records, illustrating MongoDB's schema-less noSQL approach.
Import data into mongo using mongoimport from csv or json files. Specify the database and collection, then view results with find and iterate through the 1000 documents.
Explore executing MongoDB commands beyond the shell, including creating and running script files. Connect to localhost:27017, use the test database, and run multi-command scripts via input redirection.
Explore save() versus insert() in MongoDB fundamentals, demonstrating how insert creates a new document and errors on duplicate _id, and how updating existing data affects modified counts.
Use the find function with selection criteria and projection to restrict documents and return only chosen fields like first name, last name, and city.
Apply selection by specifying an object representing conditions to filter documents, such as city equals Chicago using the $eq operator, then use pretty and find to view results.
Learn how the $where operator evaluates JavaScript conditions on each document in a MongoDB collection, using the this keyword to access fields and filter results.
Note: The data in the employees.json is a bit different from the one in the video. So while executing the queries and commands you may see different results.
MongoDB scans all documents by default; create a single-field index on a frequently queried field like phone to boost performance, then use explain and getIndexes to manage indexes.
Learn how to import documents into MongoDB, locate a document by _id, and update fields using the update command and the $set operator, adding new properties like details.
Learn how to increment the unit price of all products in a given brand using the Mongo shell, applying $inc and the multi update option to affect multiple documents.
Learn to delete documents in MongoDB using the remove operation with criteria, deleting multiple matches or a single document, with permanent, undo-free results.
Mongodb is a one of the most popular NO-SQL database management system today. As against the traditional RDBMS, it stores the data in an unnormalized way, in binary JSON format.
Mongodb is an open source document database. The name is derived from Humongous DB. This falls into the category of NO-SQL databases. The data in Mongodb is stored in an un-normalized format, as a collection of documents. A collection in Mongodb is equivalent of a table in RDBMS and a document is equivalent of a record. However, unlike a record, a document need not have the same structure as other documents in the same collection.
All the best!