[Request]: How does strapi entity service work with transactions?
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
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.
Hello I would also like to know how to work with transactions correctly. Is it possible to get information or documentation?
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?