-
Does keystore support transactions? I know that prisma does but when i try something like this (item name is unique) one item is created and then the rest of it fails. mutation {
createCategory(
data: { name: "C1", items: { create: [{ name: "I1" }, { name: "I1" }] } }
) {
id
name
items {
id
name
}
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @kjurenec, There is no support for database transactions at this time, which is unfortunate. The problems aren't new to us, but different solutions have different trade-offs which we are always trying to balance with productivity and availability. Related
|
Beta Was this translation helpful? Give feedback.
-
Hey, I'm using "@keystone-6/core: 3.1.1" and issue with transactions still occurs. I wonder if this was solved at any further version, so if I upgrade to the newest (5.7.2) this would be fixed already? |
Beta Was this translation helpful? Give feedback.
Hi @kjurenec,
There is no support for database transactions at this time, which is unfortunate.
We aren't unaware of the problem, and it is something we are trying to integrate into existing functionality, but for now, it is not supported.
The problems aren't new to us, but different solutions have different trade-offs which we are always trying to balance with productivity and availability.
Related