MongoDB Basics
Initialize Module
Create Schema
Field Validation
Creating Collection (Table)
Create & Save Document (Row)
Select/ Fetch Document
Fetch subset of Records
Find Single Record
Find a document by ID
Update Document
Update a Document
Can be used to add new fields to document as well but they should be specified in the schema. Refer document for other functions for updating
Update Document using ID field
The remove by id will only work if the callback is specified else it will only return the item with the id
Delete a Document
Delete Single Record
Delete all the data from DB
Delete using ID Field
The remove by id will only work if the callback is specified else it will only return the item with the id
Relationship and Embedded Documents
Close Connection
Mongoose Methods
Fetch columns from Document