Posts

Showing posts with the label MONGO

MONGO DB Interview Questions

Image
Basic MongoDB queries: USING SPECIFIC SCHEMA -> use school; CREATE COLLECTION -> db.createCollection(name,options) DROP COLLECTION -> db.collection.drop() INSERT ->  db.persons.insert( { name: "kadhir", dept: "CSE" } ) GET LIST OF ALL INDEXES ON SPECIFIC COLLECTION -> db.collection.getIndexes() In MongoDB, tables are called as collection, rows are called as document, columns are called as field, joins are called as linking.   Q1. What is MongoDB and Why we need MongoDB? MongoDB is the most famous NoSQL open source database management system. It is written in C++ language and developed by MongoDB Inc. MongoDB is a document oriented database which means it stores the data in BSON format which is a binary representation of JSON and it contains more data types than JSON. In MongoDB, tables are called as collection, rows are called as document, columns are called as field, joins are called as linking. MongoDB is widely   supported by most of the languages ...