Hello! I've started to have some weird behavior af...
# orm-help
m
Hello! I've started to have some weird behavior after upgrading to 3.1.1 from 2.30.2. I'm doing the following:
Copy code
export const prisma = new PrismaClient({
  datasources: { db: { url: generateDatabaseURL(schemaId) } },
});
and I know it works because doing console.log shows:
Copy code
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?