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

[Request]: How does strapi entity service work with transactions? #2125

Open
deltaboukensha opened this issue Jun 13, 2024 · 3 comments
Open
Assignees

Comments

@deltaboukensha
Copy link

Summary

I would like to know if strapi entity service works with transactions?

Why is it needed?

Transactions are important

Suggested solution(s)

Document how transactions work with entitity service. And if it does not then please document that.

Related issue(s)/PR(s)

No response

@pwizla
Copy link
Collaborator

pwizla commented Jun 14, 2024

Hi @deltaboukensha and thank you for the request.
Could you please elaborate on what you mean by "transactions"?
Is it something like this? https://docs.strapi.io/dev-docs/database-transactions

By the way since you mention Entity Service, I wanted to highlight that the Entity Service API will be deprecated in the upcoming Strapi 5.

Meaning that if you want your project to be future-proof, I would like to encourage you to start considering the Document Service API instead. You'll find more info here: https://docs.strapi.io/dev-docs/migration/v4-to-v5/breaking-changes/entity-service-deprecated

However, Strapi v4 will still be supported for roughly 1 year after Strapi 5 is out.

@pwizla pwizla self-assigned this Jun 14, 2024
@MaxDiMart
Copy link

MaxDiMart commented Oct 11, 2024

Hello I would also like to know how to work with transactions correctly. Is it possible to get information or documentation?

@pwizla
Copy link
Collaborator

pwizla commented Oct 14, 2024

Hi @MaxDiMart, same answer and same question as in my reply to deltaboukensha:

Here's the existing database transactions documentation: https://docs.strapi.io/dev-docs/database-transactions Could you please elaborate on what you need? Do you need this for Strapi v4 or v5?

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

No branches or pull requests

3 participants