Core service methods use the Document Service API
In Strapi 5, core service methods use the Document Service API instead of the Entity Service API.
This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.
Breaking change description
In Strapi v4
For instance, the core controllers by default use the Entity Service API for methods such as find
.
In Strapi 5
For instance, the core controllers by default use the Document Service API for methods such as find
.
Migration
This section regroups useful notes and procedures about the introduced breaking change.
Notes
Some core methods are calling super.find(ctx)
which internally calls entity service methods in Strapi v4, while they call Document Service API methods in Strapi 5. This may result in some queries no longer working, or returning slightly different results from expecting.
Manual procedure
Please refer to the Entity Service API to Document Service API migration documentation.