Converting functions from JS client to Python client - Equivelant to upsert #753
Replies: 1 comment 1 reply
-
I also run into this @RobertCraigie apologies if its somewhere in the docs and I've missed it |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a working prisma-client-js that has the following function to update my database:
Which works however I am migrating this and other functions over to a python backend using prisma-client-py.
So I have convert it as follows:
It works but creates a new record in the database.
How do I update my unique record using the unique field
@@id([userId, lotId])
My schema for LotAnalysis looks like below:
Beta Was this translation helpful? Give feedback.
All reactions