From charlesreid1

(Created page with "==Mongo Collections== Collections are the NoSQL equivalent to tables. ==Drop collection== ===Drop collection from mongo shell=== From the shell, call the drop() method on...")
 
Line 2: Line 2:


Collections are the NoSQL equivalent to tables.
Collections are the NoSQL equivalent to tables.
==Add collection==
Like databases, you can create collections by treating them as if they exist; if they do not, they will be created.


==Drop collection==
==Drop collection==

Revision as of 02:43, 1 February 2018

Mongo Collections

Collections are the NoSQL equivalent to tables.

Add collection

Like databases, you can create collections by treating them as if they exist; if they do not, they will be created.

Drop collection

Drop collection from mongo shell

From the shell, call the drop() method on the collection you want to drop:

> db.collection.drop()

Flags