Difference Between ORM and ODM

Saad Naeem - Jun 12 - - Dev Community

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).
. .