Introduction to MongoDB

Last Updated : May 4th 2017 22:20

Document Database

A record in MongoDB is a document.Document is a set of key-value pair.MongoDB documents are similar to JSON Object.

Example of MongoDB Document:

{
name: 'test',
personalInfo : {firstName : 'test',lastName : 'name'},
address : {location : 'Haryana',pinCode : 765432},
groups : ['news','sports']
}

The value of MongoDB field may include other document,arrays and arrays of documents.

Introduction to MongoDB

Document Database

A record in MongoDB is a document.Document is a set of key-value pair.MongoDB documents are similar to JSON Object.

Example of MongoDB Document:

{
name: 'test',
personalInfo : {firstName : 'test',lastName : 'name'},
address : {location : 'Haryana',pinCode : 765432},
groups : ['news','sports']
}

The value of MongoDB field may include other document,arrays and arrays of documents.

Copyright © 2016, Solutionbell, All Rights Reserved