An object document mapper (ODM) in simple terms, maps objects with a document-based database like MongoDB. An object document mapper allows a developer to define a schema for documents inside collections.
It allows users or developers to structure the documents well for better representation. An ODM also enables users to add new properties and fields easily.