Node JS: Prof. Nalini N Scope VIT
Node JS: Prof. Nalini N Scope VIT
Node JS: Prof. Nalini N Scope VIT
Prof. Nalini N
SCOPE
VIT
Node JS
• Collection
• Collection is a group of MongoDB documents. It is the equivalent of an
RDBMS table.
• A collection exists within a single database.
• Collections do not enforce a schema.
• Documents within a collection can have different fields.
• Typically, all documents in a collection are of similar or related purpose.
Document
• A document is a set of key-value pairs. Documents have dynamic schema
{
_id: ObjectId(7df78ad8902c)
title: 'MongoDB Overview',
description: 'MongoDB is no sql database',
tags: ['mongodb', 'database', 'NoSQL'],
comments: [
{
user:'user1',
message: 'My first comment',
dateCreated: new Date(2011,1,20,2,15),
},
{
user:'user2',
message: 'My second comments',
dateCreated: new Date(2011,1,25,7,45),
}
]
}
Document
• Big Data
• Content Management and Delivery
• Mobile and Social Infrastructure
• User Data Management
• Data Hub
Installation
• The Download Center should display MongoDB Community Server download information.
If not, select Server, then click the MongoDB Community Server tab.
• In the Version dropdown, select the version that corresponds to the latest MongoDB Server
4.2.
• Click Download.
• Go to the directory where you downloaded the MongoDB installer (.msi file). By default,
this is your Downloads directory.