unlight / prisma-nestjs-graphql

Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make single fields in *WhereUniqueInput classes required

benkroeger opened this issue ยท comments

I know that Prisma (more precisely this comment) also generates *WhereUniqueInput types with a single optional field - but I think from a developer's perspective - and also from a user's perspective it doesn't make sense to try to find a unique entry with an empty filter.

Are you guys open for marking a single field (meaning the class has only one filed) in *WhereUniqueInput classes not nullable (GraphQL) and required (TypeScript)

๐ŸŽ‰ This issue has been resolved in version 14.3.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€