Database and collection operations

Occasionally, you may find yourself in the position where you need to do quick edits on the database. As we mentioned, you can often use the GUI tool MongoDB Compass, however there may be times when you are limited an SSH connection and command line access. The best word of advice we can give you at this point is to brush up on your JavaScript! In this sub-section we will cover creating and dropping databases and collections.

Get MongoDB 4 Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.