![]() Instead of the rows that exist within relational tables, MongoDB has ‘documents’ that are organised within collections. ![]() Unlike relational databases, instead of tables, MongoDB features ‘collections’.Ĭollections act as containers to organise related documents together that have a similar schema. Let’s cover a couple of basic MongoDB concepts before we start executing some queries, specifically how MongoDB differs from relational databases. Head over to to the HumongouS.io MongoDB Playground where you can input custom database contents and run queries to learn how MongoDB works online. I recommend that you check out the prior post so that you are fully up to speed on MongoDB and have an environment ready that will allow you to execute the queries that I’ll be showing you.Īlternatively, perhaps you don’t want to set up MongoDB right now and you just want to try it out to see if it’s for you. In my Setting up a MongoDB development environment blog post I cover in detail the background behind MongoDB and how to set things up. MongoDB is an open-source NoSQL database and its history goes back as far as 2007 when it was first developed by a company called 10gen. My aim in this article is to clear up the mystery and show you how to get started quickly with querying MongoDB databases. Working with MongoDB can sometimes seem like wizardry to developers coming from a relational background. This is particularly true in regards to database queries since MongoDB features its own unique query API that is completely different from using a traditional query language like SQL. As a document-oriented database, MongoDB is very different from relational databases such as SQL Server or PostgreSQL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |