Prisma Client: wrong type when using spread operator to set default values on query args #19962
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: client types
Types in Prisma Client
topic: clientExtensions
topic: prisma-client
topic: typescript
Milestone
Bug description
I'm using spread operator to set default values on query args of my findMany() function, but when I use it the generated type is incorrect.
How to reproduce
Repository class:
If I pass only
params
as args offindMany
the type ofcomponent.componentStyle
(see below) is correct.Expected behavior
componentStyle
need exists incomponent.componentStyle
.Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: