Drizzle equivalent of `findFirstOrThrow`

Is there an analgous way to do this code in drizzle?
const data = await prisma.appData.findFirstOrThrow({}));
const data = await prisma.appData.findFirstOrThrow({}));
is the best path forward to manually throw errors? is this a planned feature?
2 Replies
Dan
Dan15mo ago
You should just manually throw errors, yes
jakeleventhal
jakeleventhal15mo ago
thanks, closing
Want results from more Discord servers?
Add your server