Collection Creation
Collection Creation
Overview
• MongoDB stores data records as documents which are gathered together in collections A
database stores one or more collections of documents.
Introduction
• Databases, collections, documents are important parts of the MongoDB without them
you are not able to store data on the MongoDB server. A Database contains a collection,
and a collection contains documents and the documents contain data, they are related to
each other.
Collections
• A collection is a grouping of MongoDB documents. Documents within a collection can
have different fields. A collection is the equivalent of a table in a relational database
system. A collection exists within a single database.
Collections Screen
• The Collections screen lists the existing collections and views in the selected database.
Each list item includes the name and other general information for the collection or view.
• To access the Collections screen for a database, from the Databases screen either:
• Click a Database Name in the main Databases view, or
• Click a database in the left navigation.
Collection Information
The Collections screen displays the following information for each collection in the selected
database:
• Collection name
• Average size of documents in the collection
• Total size of all documents in the collection
• Number of indexes on the collection
• Total size of all indexes on the collection
• Collation properties for the collection. Hover over a Collation banner to view the
properties for that collection.
Employee_Info
• When Employee login into the portal screen will display all information of an employee
_ Employee _id, Name, Email, Mobile, Designation and it will also display Department.
Project_Info
• Emp project_ Info: In this we can see the project details, client details and when
it's started and deadline of the project along with skills set required for the
project.
• Along with this we can also see the project id, emp I'd and the project manager
name.
Rating Collection
• Rating Collection schema: In this based on our performance ratings will be
categorized in this there will be an emp I'd, Manager id along with his ratings and
we can have the comments provided to us.
EX
• When are you click on the document, collection page will render and we create
collection name and create collection.
Create Collections