documentation icon indicating copy to clipboard operation
documentation copied to clipboard

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

Open deltaboukensha opened this issue 1 year ago • 3 comments

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

deltaboukensha avatar Jun 13 '24 12:06 deltaboukensha

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 avatar Jun 14 '24 15:06 pwizla

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

MaxDiMart avatar Oct 11 '24 23:10 MaxDiMart

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?

pwizla avatar Oct 14 '24 08:10 pwizla