PrismaP
Prisma2y ago
2 replies
foobar

In a Prisma result extension, is it possible to require ("needs") a relation?

Hi!

I love extensions, in particular result extensions that I use extensively!

For now, I use it only with fields that belong directly to the model, but I often want to "require" (the "needs" field) fields that are in a relation. Is that possible?

I managed to make it work, but typescript is not happy about it :/

Do you have any solution?

Thanks a lot!
Was this page helpful?