Using MongoDB
A relational database is a structured collection of data that is strictly organized into tables. The dominant language for querying databases is SQL. NoSQL databases, such as MongoDB, do not use SQL, but various other query languages and do not have a strict structure in their tables, which are called collections in the NoSQL terminology.
You can categorize NoSQL databases according to their data model as Document, Key-Value, Graph, and Column-family. MongoDB is the most popular document-oriented NoSQL database that is appropriate for use in web applications.
Note
Document databases were not made for dealing with Microsoft Word documents, but for storing semistructured data.
Basic MongoDB administration
If you want to use MongoDB on your Go applications, it would be very practical to know how to perform some basic administrative tasks on a MongoDB database.
Most of the tasks presented in this section will be performed from the Mongo shell, which starts by executing the mongo
command...