cedric
04/17/2019, 7:01 PMprisma-nexus
against two separate prisma services. for context, we need to talk to two database schemas, so due to this issue we've created two separate prisma services: https://github.com/prisma/prisma/issues/1622.
this results in two prisma.ymls which are each generating their own nexus-prisma.ts
. however, each file contains the following code:
declare global {
interface NexusPrismaGen extends NexusPrismaTypes {}
}
bc this is in the global namespace, it results in one set of nexus-generated types overriding the other. i'm uncertain of the motivation for using the global namespace here, but i'd be super interested if anyone has any suggestions for getting around this (or if it's a bug that should be filed). we really like working with prisma but i feel like this multi-schema thing is resulting in workarounds layered on workarounds. /cc @weakky @Nick Dranedivyendu
04/23/2019, 8:11 AMweakky
04/23/2019, 8:26 AM