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
Dan2y ago
You should just manually throw errors, yes
jakeleventhal
jakeleventhalOP2y ago
thanks, closing

Did you find this page helpful?