From the course: Data Modeling in MongoDB

Unlock the full course today

Join today to access over 25,200 courses taught by industry experts.

ORMs

ORMs

- [Tutor] A discussion of data modeling tools wouldn't be complete without looking into modeling our databases programmatically with an ORM. Let's get behind the wheel and code this out in Mongoose. First though, let's talk about ORM. So what is ORM? Well, ORM or Object Relational Mapping is a technique. When talking about ORM, most people are referring to a library that implements the object relational mapping technique, hence the phrase N-ORM. It allows you to query and manipulate data from a database as an object using OOP principles. An ORM library is just a completely ordinary library written in your language. Its primary use case to encapsulate the code that you need to manipulate the data, your crud operations, so you don't use the database drivers directly or have to write SQL queries. It lets coders interact directly with an object with native methods in the same language they're using to write their…

Contents