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
Andrew O.
09/30/2019, 9:06 PM
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
Levar Berry
09/30/2019, 9:21 PM
thanks!
k
KJReactor
09/30/2019, 9:53 PM
I know Prisma was planning on allowing connections to multiple databases. Seems like this will be available in Photon ( aka Prisma 2)
KJReactor
09/30/2019, 9:56 PM
The way I would get around the issue is connect to / create other DBs through the resolvers to an external API
a
Andrew O.
09/30/2019, 11:42 PM
Just put each DB on their own prisma then use Nexus-Prisma to pass the data through it's pretty simple.