I’m wondering what do you think about FerretDB: the core of our solution is a stateless proxy, which converts MongoDB protocol queries to SQL, and uses PostgreSQL as a database engine. This will be compatible with MongoDB drivers and should work as a drop-in replacement to MongoDB in many cases.
You can find more information about FerretDB here: