Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 058-transactions.mdx #6422

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Update 058-transactions.mdx #6422

wants to merge 3 commits into from

Conversation

nikolasburk
Copy link
Member

@nikolasburk nikolasburk commented Nov 13, 2024

fixes #5402
fixes DA-780

Copy link
Contributor

Dangerous URL check

No absolute URLs to prisma.io/docs found.
No local URLs found.

Copy link
Contributor

Redirect check

This PR probably requires the following redirects to be added to static/_redirects:

  • This PR does not change any pages in a way that would require a redirect.

Copy link

cloudflare-workers-and-pages bot commented Nov 13, 2024

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6ba332c
Status: ✅  Deploy successful!
Preview URL: https://0a19d3d4.docs-51g.pages.dev
Branch Preview URL: https://nikolasburk-patch-6.docs-51g.pages.dev

View logs

@@ -491,6 +491,36 @@ To avoid transaction write conflicts and deadlocks on a transaction:
}
```

### Using `$transaction` within `Promise.all()`

If you wrap a `$transaction` inside a call to `Prisma.all()`, the queries inside the transaction will be executed _serially_ (i.e. one after another):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If you wrap a `$transaction` inside a call to `Prisma.all()`, the queries inside the transaction will be executed _serially_ (i.e. one after another):
If you wrap a `$transaction` inside a call to `Promise.all()`, the queries inside the transaction will be executed _serially_ (i.e. one after another):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User suggestion to improve transaction docs
2 participants