1.

MongoDB Count() and Remove() function with example

Answer»

MongoDB COUNT() and Remove() function with example
Count() is used to get the count of documents in a COLLECTION as PER the query EXECUTED. And syntax is GIVEN below
db.Employee.count()

Remove() is used to remove documents from a collection. We can delete documents by a sepcific condition too. Below is the syntax:
db.Employee.remove({Employeeid:10})



Discussion

No Comment Found