MichalLytek / typegraphql-prisma

Prisma generator to emit TypeGraphQL types and CRUD resolvers from your Prisma schema
https://prisma.typegraphql.com
MIT License
887 stars 113 forks source link

update disconnect fails when disconnecting multiple items #444

Closed mahsohn closed 7 months ago

mahsohn commented 7 months ago

When I try to disconnect multiple ids on an update query, prisma throws an error. The schema generated allows for the disconnect to be a ModelWhereInput but prisma is expecting a ModelWhereUniqueInput so I can only disconnect one per query.

MichalLytek commented 7 months ago

This should not happen as input types are generated based on Prisma DMMF, which is based on generated Prisma Client.