Manthan Mallikarjun
09/27/2021, 6:35 AMexport const prisma = new PrismaClient({
datasources: { db: { url: generateDatabaseURL(schemaId) } },
});
and I know it works because doing console.log shows:
datasourceOverrides: [Object: null prototype] {
db: '<postgresql://example:example@localhost:54321/example?schema=test-9d1a4b74-2304-4edf-8663-92ec3bb55a7a>'
},
in the mess. However when I query the data, its actually coming from the default schema and not the schema listed above (I used a postgres viewer to go check the data in the tables of each of those schemas). Any idea why this would be happening?