'Db agnostic nest js backend

I’m trying to build a backend using nest.js. I’m using MySql now but I want to use Mongo in the future. Are there any libraries which will help me make my code db agnostic? Like all I need to do is modify some config file and voila my backend works with MongoDb. I believe Prisma does this but I’ve never used so can’t say for sure. Thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source