Docker and MongoDB

Introduction There may be times when you want to run specific processes or services separate from other ones that run on your operating system. Docker allows developers to precisely accomplish that goal. Find out how with this tutorial that explains how to build a MongoDB image so that you can run the Mongo Server in … Continued

Use Docker and Python for a MongoDB Application

Introduction Docker is an open source platform designed principally for Windows and Linux systems. A Docker image file is used to execute code in a Docker container created from the executable version of an application. The image becomes one, or multiple, instances of that container when a user runs an image. This tutorial will cover … Continued

How to Delete a MongoDB Document using Spring Data Part 1

Introduction If you’re building an application with Spring Data that interacts with MongoDB, you may want your application to perform certain database operations such as deleting documents. Fortunately, this task isn’t a difficult one to accomplish, even if you’re new to Spring Data. In this article, we’ll start by showing you how to set up … Continued

How to Save MongoDB Document using Spring Data Part 1

Introduction The Spring Initializr Spring Boot project generator offers the developer’s convenience in building stand-alone Spring applications. The popular Eclipse Integrated Development Environment (IDE) utilizes JavaScript, and it makes the perfect open-source platform for your Spring Boot project. But wait. You’ll also need a database application. That’s where the flexible and scalable MongoDB comes in … Continued

How to Save MongoDB Documents using Spring Data Part 2

Introduction This is part two in the tutorial series explaining how to save MongoDB documents using Spring data. Directions were provided in part one of the series on how to configure a spring boot project with the online tool ‘Spring Initializr’ and import it as a Maven project. Part one also created Java classes for … Continued

Inserting data into MongoDB using post in mongoose

CRUD operations As we all know, a database is used to store data. But it’s not just that. We always don’t have static data. After setting up a database, we may need to perform many operations. We may need to add more data, or we need all the data or some data. We may also … Continued

How to install mongoose with npm

Introduction Mongoose is an Object Data Modeling (ODM) library that is used for schema validations and managing relationships among data. Mongoose is frequently used with NodeJS and MongoDB. Understanding mongoose is very important and it is also very simple at the same time. But before we can use mongoose in our NodeJS files, we need … Continued

Understanding the mongoose __v field

Introduction Data in MongoDB is stored in JSON format. More precisely said, data is stored in BSON format. BSON format provides a variety of data types. We can insert data from mongo shell or through mongoose. In both cases, the _id field is generated automatically in each document. The _id field acts as a primary … Continued

How to use express with mongoose

Introduction Express is an important part of web application development stacks such as MEAN and MERN stack. Developing web applications is not an easy task. Backend is an important part of every web application. The backend is the connectivity to databases and it also holds APIs that interact with the databases. One important part of … Continued

How to install mongoose with npm and import into NodeJs

Introduction MongoDB and NodeJs are often used together for developing back-ends. MongoDB is a NoSQL database. To connect the database and manage relationships between data, the mongoose is used. It is an Object Data Modeling (ODM) library. It provides schema validation and also helps in managing relationships between data. In this article, we will discuss … 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.