SQL vs NoSQL

SQL → Structured Query Language (also known as relational databases)

NoSQL → Not Only SQL

Database overview.

A collection is a grouping of documents!

Displayed in JSON, but stored in BSON (Binary JSON). This allows for more data types to be stored. Every document requires an __id field, which acts as the primary key. It’s automatically generated if it’s not included when entered into the data base.

But you can add in optional schema validation!

MongoDB is a general-purpose database that can be used for a variety of use cases. It’s part of Atlas, the developer data platform.

Connecting

Example from library project

Untitled

Follow this: https://www.makeuseof.com/mongodb-cluster-cloud-free-setup/

Untitled

Commands

insertOne() → insert one document