How I can get random data from prisma?
# orm-help
n
How I can get random data from prisma?
1
r
@Naotho Machida 👋 Not supported directly yet, so you would need to use a raw query. It would be great if you could add a 👍 on the above request.
n
Hi Ryan! Ok 😉
How I can see the actual SQL Request?
o
const result = await prisma.$queryRaw('SELECT * FROM User;')
n
Very thanks! Solved
o
Could you share a bit on how you were able to achieve the random fetching.