strapi / documentation

Strapi Documentation
https://docs.strapi.io
Other
1.01k stars 1.07k forks source link

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

Open deltaboukensha opened 2 months ago

deltaboukensha commented 2 months ago

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 commented 2 months ago

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-next.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-next.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.