does anyone know if it is possible to have multip...
# orm-help
l
does anyone know if it is possible to have multiple DBs for one Prisma API endpoint? I am trying to think of how I can use Prisma for a SaaS app .. I like to have a database for each Company that is on our system.
a
to my knowledge you would need an Prisma API for each and then you can stitch them together with a master server, and then have one API endpoint.
👍 1
l
thanks!
k
I know Prisma was planning on allowing connections to multiple databases. Seems like this will be available in Photon ( aka Prisma 2)
The way I would get around the issue is connect to / create other DBs through the resolvers to an external API
a
Just put each DB on their own prisma then use Nexus-Prisma to pass the data through it's pretty simple.