You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
selectRelationCount generator doesn't add _count to Prisma.validator #7688
The selectRelationCount preview feature in #6312 works well, but the _count field doesn't seem to be supported by Prisma.validator and Prisma.XYZGetPayload for partial / related types.
// works fineconstuser=Prisma.validator<Prisma.UserArgs>()({select: {id: true,name: true},});exporttypeUser=Prisma.UserGetPayload<typeofuser>;// TS2322: Type 'boolean' is not assignable to type 'never'.constuserWithCount=Prisma.validator<Prisma.UserArgs>()({select: {id: true,name: true,_count: {select: {posts: true}},},});
Activity
SamuelMS commentedon Jun 20, 2021
Disregard; the generator is working correctly, I was referencing a stale file.