Closed dcousens closed 2 months ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit b276fb4074e219695715fc43b8b630f6d1cabaac:
Sandbox | Source |
---|---|
@keystone-6/sandbox | Configuration |
This pull request adds
context.transaction
for running interactive Prisma transactions through a Keystone context. An example has been added inexamples/transactions/schema.ts
that shows how you might use this functionality in a custom GraphQL mutation.This functionality is the bare-minimum approach to adding transactions for now, but future work will focus on how we can integrate transactions into hooks and other Keystone operations more fluently.