PrismaP
Prisma17mo ago
7 replies
ptrxyz

concat two Prisma.sql queries.

I have two pretty complex queries which i created manually using

const a = Prisma.sql(...)
const b = Prisma.sql(...)


In some cases and since both return the same data type, I would like to run them in one go concatenated using (QUERY1) UNION (QUERY2).

So, my question is: How can I concat two Prisma.sql queries?
Was this page helpful?