Introduction to MongoDB
MongoDB or you might hear people call it Mongo, is one of the most popular NoSQL database solutions to date.
It is open-source, free to use for personal and commercial use, and extremely flexible.
Programming languages such as Go ( I have a short example video of interacting with MongoDB using Go ), Javascript, and many others can interact with MongoDB using third-party modules, often being official modules from the MongoDB team.
You can read more about it here.
Here is a summary of some of its features:
- Stores data as JSON documents in schema-less collections.
- Uses Javascript as its query language.
- Has a lot of feature parity with traditional SQL databases.
- Boasts amazing horizontal scaling using replica sets.
Here is some additional information and tutorials about MongoDB from me:
Setup
Collections
Reading Documents
- Get all documents out of a collection
- Limit the result of a MongoDB query to one document
- How to use filters to retrieve specific documents from MongoDB
- How to retrieve a very specific number of documents from a MongoDB query
- How to sort the results of a MongoDB query
Inserting Documents
- How to insert a single document into a MongoDB collection
- How to bulk insert documents into a MongoDB collection
- How to get the distinct values of a field across all your documents in MongoDB
Updating Documents
- How to update a single document in a MongoDB collection
- How to replace an existing document in MongoDB
- How to do bulk updates in MongoDB
- How to do upserting in MongoDB
Aggregations
I will be adding a lot of posts and tutorials around MongoDB in the future. As I post them, I will add them here.
Did you find this information useful? If so, consider heading over to my donation page and drop me some support.
Want to ask a question or just chat? Contact me here