Michael Dausmann
07/17/2021, 7:02 AMconst ids = [41, 55]
`const result = await prisma.$queryRaw`select * from users where id in (${ids})`;`
but I get a kernel panic
PANIC in /root/.cargo/git/checkouts/rust-postgres-dc0fca9be721a90f/8a61d46/postgres-types/src/lib.rs:762:18
expected array type
any Idea how I can achieve this?Michael Dausmann
07/17/2021, 10:51 AMMichael Dausmann
07/17/2021, 10:52 AMimport { PrismaClient, Prisma } from '@prisma/client';
Michael Dausmann
07/17/2021, 10:52 AMconst ids = [1, 3, 5, 10, 20];
`const result = await prisma.$queryRaw`SELECT * FROM User WHERE id IN (${Prisma.join(`
ids
`)})`;`Michael Dausmann
07/17/2021, 10:53 AM