<Tablename>UpsertArgs
select field does not match type for db.<tablename>.upsert(item)
#20243
Labels
5.0.0
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: prisma-client
topic: upsert
nested upsert
Milestone
Bug description
On upgrading to Prisma version 5.0.0, the typescript types for the
select
field of aPrisma.<TableName>UpsertArgs
datatype is no longer compatible with the actualupsert
function for that table. This had previously been working in version 4.16.2-dev.2.How to reproduce
tsc
command to type-check the files, or load them in an IDE and look at the errors identified.Expected behavior
These datatypes should be compatible.
Prisma information
Prisma schema
tsconfig.json:
~/utils/singleton.server.ts:
~/integrations/prisma/index.server.ts:
~/models/stripe/stripePrice.ts:
Error in
onStripePriceUpdated
:~/models/stripe/stripeProduct.ts:
Errors in
onStripeProductUpdated
:Environment & setup
5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64 GNU/Linux
Prisma Version
The text was updated successfully, but these errors were encountered: