
Explore MongoDB, a high-performance no-sql document database for web applications, and learn to install, connect with the Go driver, and perform core operations.
Learn how to insert documents into a MongoDB collection using Go, creating databases and collections like categories, and handling _id primary keys for persisted data.
Explore inserting documents in a golang mongo db app by using embedded documents to model one-to-many relationships, preserving integrity with child collections and budget documents.
Explore reading documents in a MongoDB collection using Go, retrieve all documents, apply filters, and iterate results to model parent-child relationships.
Read and manage documents from a MongoDB collection, then apply the sort method to order records by fields like name or profile, and practice retrieving documents by id.
Learn to update documents in a MongoDB collection using Golang, find a single matching document, and apply changes with the $set update operator.
Learn to delete a single document by criteria such as name or id, remove multiple documents from a collection, and clear all documents from the collection or database.
Learn how to create indexes in a MongoDB collection to boost query performance, including default, field-specific, unique ID indexes, and compound indexes across fields.
Learn to build a persistence application with MongoDB in Go, using collections for high performance and persistent storage. Open a session object for read operations via the api.
When you build web applications, persistence of application data is very important. You can define the data
model of your Go applications using structs, in which you can program against the structs for working with
application data, but you need persistent storage for your application data.
This course shows you how to persist application data into MongoDB, which is a popular NoSQL database.
This course covers the following:
• Introduction to MongoDB
• You will know how insert documents
• You will know how read documents
• You will know how update documents
• You will know how delete documents
• You will know how create indexes
The Go programming language can be simply described in three words: simple, minimal, and pragmatic.
If you look deeply into the language design of Go, you see its simple and minimalistic approach, coupled
with a pragmatic design. You can observe this simplicity with all the Go language features, including the
type system. Today, many programming languages provide too many features that make applications more
complex for developers. The design goal of Go is to be a simple and minimal language that provides all the
necessary features for developing efficient software systems.