

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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)