MongoDB for custom app

We want to build a custom app for product management that gets very complex and to reduce data redundancy we want to use MongoDB.

Is it possible to build a custom app in Frappe that can be used with MongoDB as a database?

Yes! Refer to the newly introduced Virtual DocType feature:

You can design a class like MongoDBDocument (child of frappe.model.document.Document) which implements MongoDB-specific methods. This can then be inherited by the DocTypes you wish to use with MongoDB. You will still need MariaDB / PostgreSQL for standard DocTypes though.

1 Like

Excellent, Request to share a live example of py files to connect json , csv , mango-db etc , much appreciable by people coming from background like me

Hello @anandf
If you want I can help you to develop such application for you