DEV Community

Saad Naeem
Saad Naeem

Posted on

Difference Between ORM and ODM

Hi, Today we will discuss shortly about ORM and ODM tools and we will clear our all confusions of ORM And ODM.

So let's start today's short topic:

ORM:

  • ORM ( Object relational mapping) is a tool that is commonly used for SQL databases (MYSQL, PostgreSQL).
  • These tools are used to map the relational database tables into programming language objects.
  • Examples: Prisma, TypeORM, Sequelize.

ODM:

  • ODM tool is commonly used for NoSQL Document Database ( MongoDB ).
  • These tools are used to map the document (JSON Like format ) to programming languages objects.
  • Examples: Mongoose (for MongoDB).

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.