How to Use MongoDB Comparison Query Operators in Java

Introduction When you query a database, there are times when you need to use comparison operators to express the conditions of the query. You might want a list of all students whose age is greater than 16, or you might want the database to return all cars where the model year equals 2019. Queries like … Continued

How to Use the LIKE Query in MongoDB using Java

Introduction When you’re querying a database, there are times when you need answers to questions that can’t be accomplished with typical operators. Perhaps you have a collection of student records, and you want to query for all names that start with “R”– you can’t rely on a traditional exact-matching query to do the job. In … Continued

Embedded Documents in a MongoDB Collection

Introduction If you’re new to using MongoDB, you may not have much experience working with embedded documents. However, it’s worth taking the time to learn how to use them– the embedded document model is a powerful concept, allowing you to store all kinds of related information in a single document. This “denormalized” database structure offers … Continued

How to Use The Websocket Output Plugin For Elasticsearch

Introduction If you’re working with both Logstash and Elasticsearch, you may want to use a websocket in order to secure an uninterrupted connection between Logstash and your Elasticsearch cluster. The Websocket output plugin can allow for real-time communication between the server and client– in this case, between Elasticsearch and Logstash, through a websocket. In this … Continued

How to Insert a Document Into a MongoDB Collection Using Python

Introduction Mastering the art of inserting MongoDB documents and MongoDB databases using Python and its PyMongo library is a great way to streamline managing your MongoDB collections. Adding documents is a common task you’ll likely complete on a regular basis and accomplishing it in a straightforward way leads to a more productive and efficient day. … Continued

How to Work with Embedded Document in MongoDB Collection

Introduction This is “Part Two” of the “How to Work with embedded documents in a MongoDB Collection” tutorial. This second part of the tutorial will demonstrate how to: Create a simple embedded MongoDB document. Update a field of an embedded MongoDB document. Delete an embedded MongoDB document. All of the examples in this tutorial will … Continued

How to Use MongoDB Logical Query Operators in Java

Introduction This tutorial will explain how to go about using MongoDB Logical Query in Java to retrieve documents with the $or, the $nor and the $and commands. The MongoDB and compatible version of MongoDB Java driver must be properly installed and configured in order to use MongoDB Logical Query Operators in Java. The examples in … Continued

How to Retrieve MongoDB Document in Eclipse IDE Using Java

Introduction This tutorial will show users how to create a query for retrieving MongoDB documents in Eclipse using Java. Before beginning, the MongoDB and a compatible version of the MongoDB Java driver must be properly installed and configured. The latest versions of both Java JDK and Eclipse IDE should be used to achieve the best … 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.