Thursday, 28 December 2017

Errors !!!

MongoDB : Errors !!!

When a create command is triggered with no parameters, then a generic error will be thrown:

Example

Command :  db.createCollection();

                    this command expects two parameters: 1. name of the collection and 2. Properties for the collection. Collection name is a compulsory here. if collection name is not provided, then the below error is thrown :

 
   



No comments:

Post a Comment