tort6334
Explore posts from serversPPrisma
•Created by tort6334 on 8/5/2024 in #help-and-questions
Alternative to solving optimistic concurrency issue without version field
In the following page there is a suggestion how to solve concurrency issue by adding a
version
field and ask about it in the where
clause when updating a model:
Reference: https://www.prisma.io/docs/orm/prisma-client/queries/transactions#optimistic-concurrency-control
what I want to ask, is if instead of doing:
I could have asked if claimedBy is still null, will it do the same trick?
so the solution would be like so:
The only disadvantage compared to version is that if there were many swaps between claimedby and null, i would have not known about it, but that's fine by me I guess?1 replies
PPrisma
•Created by tort6334 on 7/24/2024 in #help-and-questions
Solve optimistic concurrency issue without adding a `version` field
Question
In the following page there is a suggestion how to solve concurrency issue by adding a
version
field and ask about it in the where
clause when updating a model:
Reference: https://www.prisma.io/docs/orm/prisma-client/queries/transactions#optimistic-concurrency-control
what I want to ask, is if instead of doing:
I could have asked if claimedBy is still null, will it do the same trick?
so the solution would be like so:
The only disadvantage compared to version is that if there were many swaps between claimedby and null, i would have not known about it, but that's fine by me I guess?3 replies
PPrisma
•Created by tort6334 on 6/27/2024 in #help-and-questions
How can I use Prisma with Kubernetes? Any example
I couldn't find a single local development Kubernetes example with Prisma, and like other tools like Skaffold.
How can I do that? Prisma is an interesting case because it requires also post processing of migration, deployment and creation of the schemas.
2 replies
PPrisma
•Created by tort6334 on 5/27/2024 in #help-and-questions
Any expected SDL-First generator with CRUD abilities?
Hi guys,
I really like Prisma and I want to use it with GraphQL, the thing is, I want to generate automatically all CRUD operations based on my schema, and the only valid option right now is to use TypeGraphQL, and I prefer to use Schema First language, will there be a generator for that?
12 replies