Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
By now you have seen the basics of MongoDB. This information is very useful for MongoDB database development. You saw that MongoDB works with documents not with tables; so it's very different than SQL. Also we need to be advised that MongoDB is case sensitive. In case you have any misspelled field, or any upper/lower case difference; MongoDB will automatically create a new one with the information we entered. In order to avoid that, we can use a MongoDB ODM. Mongoose and MongoClient are very popular MongoDB ODMs.
Starting this tutorial we specified that data in MongoDB is stored in collections. We also specified that in MongoDB we use syntax similar to JSON. That syntax is called "Binary JSON" or BSON. BSON is similar to JSON; but it's more like an encoded serialization of JSON. We can find useful information in the BSON website.
It's a little bit more tricky to install MongoDB in MacOS. That's because in MacOS you don't use an installer; you install MongoDB from the terminal. You also need to have in your system the Xcode command line tool and Homebrew. Once you have everything installed, you can install MongoDB by typing the following commands in your terminal.