Check for Unique Documents in MongoDB with Spring Boot
Previously in Building a Blog: Adding Functionality to the Backend Whilst figuring out how exceptions work, I wanted to make sure that the blog posts are always unique. But how do we do that? That’s why I’ll show you how to check for unique documents in MongoDB with Spring Boot. @Indexed Annotation At first, I…
Insert Data in MongoDB with Spring Boot – Building a Blog
Previously in Building a Blog: Securing Database Credentials Last time, we set up our database and Spring Boot project, and secured our database credentials. Now, we have to configure MongoDB in our project. Then we can start to insert data in mongodb and getting a feel for the queries to get the data from the…
Securing Database Credentials – Building a Blog
Previously in Building a Blog: Getting Started with MongoDB With our database set up, it is now time to make a MongoDB connection with Spring Boot. That connects the database to our backend system, making us ready to start implementing our operations. However, I don’t want my database credentials to be all over GitHub. Therefore,…
Getting Started with MongoDB – Building a Blog
Previously in Building a Blog: Choosing a Database: SQL or NoSQL? Last time, I decided to use MongoDB for building my blog. As I have never worked with MongDB before, I still have to figure out how to get everything to work. So, the only thing left to do now is getting started with MongoDB.…