

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A concise overview of mongodb, a nosql document-oriented database. It covers key concepts such as data storage in json-like documents, scalability, availability, and flexibility. The document also outlines mongodb's features, including automatic failover, data redundancy, horizontal scalability through sharding, and support for ad-hoc queries. It details the differences between mongodb documents and json objects, highlighting mongodb's support for various data types. Additionally, it explains crud operations (create, read, update, delete) with code examples, compass key features, and the default mongodb port. Useful for students learning about nosql databases and mongodb's functionalities, offering a quick reference for understanding its architecture and operations.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


MongoDB and benefits - ANSWER NoSQL open-source, cross-platform document-oriented database program that uses JSON-like documents with schemas.
MongoDB is a what database - ANSWER document database, which means that the equivalent of a record is a document or an object. MongoDB vs. JSON objects - ANSWER Compared to a JSON object, a MongoDB document has support not only for the primitive data types boolean, numbers, and strings, but also other common data types such as dates, timestamps, regular expressions, and binary data. What is the only requirement in MongoDB document - ANSWER The only requirement is that all documents in a collection must have a unique id, but the actual documents may have completely different fields. Does mongoDB require to define a schema for a collection - ANSWER No Compass key features - ANSWER Visually explore your data. Run ad hoc queries in seconds. Interact with your data with full CRUD functionality. View and optimize your query performance. Available on Linux, Mac, or Windows. Compass empowers you to make smarter decisions about indexing, document validation, and more. Default mongoDB port - ANSWER port 27017 Const mongodb = require('mongodb'); Const MongoClient = mongodb.MongoClient MongoClient.connect(p1,p2,p3) - ANSWER p1: MongoDB server URL p2: useNewUrlParser: true, required for the latest version of mongo p3: callback function (print err if error occurs or success if connected) function(err,client) Creating or inserting documents CRUD - ANSWER InsertOne(document) InsertMany(document,document) Retrieve documents - ANSWER findOne(filter) findMany(filter)