How to Insert a MongoDB Document using Kotlin

Introduction If you’re using the Kotlin programming language to build apps, you may want your applications to have the ability to insert documents into MongoDB. Fortunately, that task is a simple one to accomplish. In this tutorial, we’ll provide instructions and code examples to show you how to insert a MongoDB document using Kotlin. Prerequisite … Continued

Delete MongoDB Document using Kotlin

Introduction MongoDB is a general-purpose distributed database designed to store data in JSON-like documents. Kotlin is a general-purpose programming language designed to fully interoperate with Java, but uses a type inference that permits its syntax to be much more succinct. Kotlin can handle operations that Java isn’t well suited to and can be successfully used … Continued

Retrieve MongoDB Document using Kotlin

Introduction MongoDB is a powerful, popular and sometimes challenging database that can be used with various programming languages. Kotlin is a multipurpose programming language that can be used to create applications for both android and iOS systems and offers additional features not found in JavaScript. This tutorial will explain how to retrieve a MongoDB document … Continued

Update MongoDB Document using Kotlin

Introduction MongoDB is a general-purpose database that supports JavaScript functions and queries that can return particular fields of specific documents. Kotlin is a programming language designed to operate with Java, but using a much more succinct syntax that is able to handle operations where Java may not be best suited. Kotlin can be used for … Continued

Elasticsearch Dockerfile Example

Introduction Docker containers offer a simple way to create and package your apps in their own environment. If you’re interested in starting a Docker container running Elasticsearch, the process is actually quite simple. In this article, we’ll show you how to create an image and spin up an Elasticsearch Docker container using Dockerfile. Prerequisites Before … Continued

Create a C# and MongoDB Project Using .NET

Introduction Pronounced “C Sharp”, C# is a general purpose programming language developed by Microsoft. C# is an object-oriented programming language useful for creating websites, mobile apps, video games and virtual reality environments. Visual Studio Code is an editor used for creating web and cloud applications. The Microsoft .NET SDK, or Software Development Kit, Framework gives … Continued

MongoDB Database Commands

Introduction If you’re just getting started with MongoDB, you may not yet know all the key database commands by heart. It can be helpful to have a reference guide available to list and explain these commands until you have them memorized. This article can serve as a “cheat sheet” of sorts, discussing some of the … Continued

MongoDB Find and Modify

Introduction When you need to modify an existing document in MongoDB, there are times when you want a bit more control over the process than the update() method can offer. With a regular update(), by the time the document is located and modified, there may be another update operation occurring on the same document. In … Continued

How to Add Elements into an Array in MongoDB

Introduction This tutorial will explain the various ways to add elements to an array in MongoDB. Pushing, or adding, elements to an array is very useful for quickly appending a list by adding or moving items in an already existing Mongo DB document. The tutorial will explain using both negative and positive integers for the … Continued

How to Full-Text Search in MongoDB

Introduction When you’re storing string data in MongoDB, there may be times when you need to perform a full-text search on this data. This functionality was first introduced in MongoDB with version 2.4. At that point, the feature was considered experimental; today, full-text search is a key component of MongoDB. In this tutorial, we’ll provide … 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.