How to Setup Replicas using MongoDB – Part 2

Introduction In this two-piece article we are showing step by step how to setup replicas in MongoDB. You might not need replication for development but if you ever want to move your application to a production environment you will need replication. Loss of data is unacceptable by today’s standards. In this article we are setting … Continued

How to Setup Replicas using MongoDB – Part 1

Introduction In this article we’ll guide you through how to setup replicas with MongoDB on your local development environment. Today’s technical market is very demanding and losing data is not an option for any production application. If one of your database servers goes down you want multiple replicas with the same data to take over … Continued

How To Access And Parse MongoDB Documents In Python

Introduction If you’re a Python developer and planning to work with MongoDB, it’s important to know how to handle the results of a query. When you query a collection of documents with PyMongo, you’ll receive results in the form of a Python dictionary. It’s actually quite easy to access these MongoDB documents in Python and … Continued

Why you should use Subcollections in MongoDB

Introduction Having an organized database architecture is invaluable. If your data is organized cleanly, it’s easier to read, easier to maintain, and easier to work with in general. One aspect of organizing in MongoDB that we see under-utilized is the use of Subcollections. Subcollections sound slightly intimidating and a lot of developers didn’t even know … Continued

What are the Data Types in MongoDB?

Introduction If you’re working with MongoDB or thinking about using it for your next project or product, one of the first basic questions you’ll ask yourself is “What data types can I store using MongoDB?”. In this article we’ll discuss the available data types and explain the more commonly used ones with enough detail that … Continued

How to Query Arrays in MongoDB

Introduction In this article we’ll be talking about how to query arrays in MongoDB. This is an extremely common practice and you’ll want to have it down cold if you’re working with MongoDB frequently. We’ll go over several examples and scenarios and you should follow along with your own data as much as you can … Continued

How to Use Regular Expressions in MongoDB

Introduction When you’re querying text fields there’s no more powerful tool than regular expressions. Although they can get extremely complex, they are unbelievably powerful and super flexible. If you need to generate complicated text queries that aren’t just exact matches then you’ll probably want to look into regular expressions. In this article we’ll take a … Continued

How to Use the Not Operator in MongoDB

Introduction The Not operator can be extremely useful when working with a database query. If you’re not familiar with how the Not operator works we’ll explain it in the first section of this article. We hope you continue reading as we explain what the Not operator is and how you can apply it to make … Continued

How to Setup a Database in Compass Community

Introduction If you’re a developer getting acquainted with MongoDB, possibly setting up a database for your new app idea, Compass Community is a quick and easy way to get started setting up your database. There are numerous ways to get started setting up a new database but we found this way to be great a … Continued

A GUI for MongoDB with Compass Community

Introduction If you’re a developer getting acquainted with MongoDB there are times when you might want to visually see what’s happening with your data without having to look up the query syntax to retrieve the data. It’s time like these where a Graphical User Interface (GUI) for MongoDB can be extremely handy. There are a … 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.