zenstack
zenstack copied to clipboard
[Feature Request] Better way to represent a successful mutation with unreadable result
Today, when a mutation succeeds, but the result is unreadable, the enhanced Prisma throws a "P2004" error, and server adapters return HTTP 403. This creates the perception of a "failed" request.
Maybe we should have a way to indicate: "just mutate but don't return anything" to avoid such errors.
This always happens when people use soft-delete, because when you do a "delete" with "update", the result is always non-readable.