How to Create an Index Using the Golang Driver for MongoDB

Introduction This tutorial will explain how to create a MongoDB index with the Golang driver for MongoDB. Indexes are extremely helpful in speeding up access to MongoDB data by optimizing the data structure. This is accomplished by creating a list of particular fields values to render the data. This article will show how to easily … Continued

How To Construct Elasticsearch Queries From A String Using Golang

Introduction If you need to get Elasticseearch documents via a Golang script, the queries you construct will be the most important part of your code. You’ll need to know how to construct and format these queries in order to search for documents with the go-elasticsearch driver. In this article, we’ll show how you can use … Continued

How To Get Elasticsearch Documents Using Golang

Introduction If you’re a Golang developer working with Elasticsearch, you’ll probably want to query and access some of your Elasticsearch data via a Go script. Fortunately, the go-elasticsearch driver makes this task a quick and simple one– all it takes is some simple Golang code to execute a query and process the results. In this … Continued

How To Insert A MongoDB Document Using The Golang Driver

Introduction This tutorial will cover how to insert a MongoDB document with Golang into a collection. The tutorial explains the InsertOne() method of the official Golang driver (mongo-go-driver) for MongoDB, how to create a MongoDB document with Golang and how to import the needed MongoDB and Golang packages. MongoDB, Golang the official Golang driver for … Continued

How To Insert Elasticsearch Documents Into An Index Using Golang

Introduction If you’re storing data in Elasticsearch, you may want to use a Golang script to perform operations such as inserting, updating and deleting documents. Fortunately, it’s easy to execute Elasticsearch operations from Golang with the help of the go-elasticsearch Golang driver. In this article, we’ll provide step-by-step instructions on using the go-elasticsearch driver to … Continued

How To Update A MongoDB Document Using The Golang Driver

Introduction If you have data stored in MongoDB, there’s a good chance you’ll need to update certain documents from time to time. Fortunately, the Golang driver for MongoDB makes it quick and easy to accomplish this task. In this article, we’ll show you exactly how to update a MongoDB document with Golang using the mongo-go-driver. … Continued

How to Update a MongoDB Document Using the Golang Driver

Introduction The tutorial will explain the UpdateOne() API method to update a document with the Mongo-go-driver using the official Golang driver for MongoDB. It will also show how to update a MongoDB document with its BSON _id. In order to update a MongoDB document with Golang, both software packages must be installed on the same … Continued

How to Update Many MongoDB Documents Using the Golang Driver

Introduction The tutorial will explain how to use the UpdateMany() method of the official Golang driver (mongo-go-driver) for MongoDB for updating multiple MongoDB documents in a single API call. MongoDB, Golang and the official Golang driver for MongoDB must all be installed on the same machine in order to update MongoDB documents with Go and … Continued

How To Setup A MongoDB App Using Golang On MacOS

Introduction The Go programming language (Golang) helps developers, just like you, automate tasks more proficiently. Matter of fact, easier tasking could be one of the main reasons why it’s a popular and preferred language for many coders. Add to the mix, MongoDB, the database that’s document-based, and you’ve also streamlined your productivity in managing your … Continued

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.