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
Dan16mo ago
You should just manually throw errors, yes
jakeleventhal
jakeleventhalOP16mo ago
thanks, closing
Want results from more Discord servers?
Add your server