PrismaP
Prisma2y ago
2 replies
Wiznet

find first on relation queries

Hey all, how do I run a find first but only on the relations of a query? For example I want to get all the users in my db, but only return the first result for their relation. Using the posts example from the docs, I would want to get all the users and only one post.
Was this page helpful?