Skip to content

Commit 2ef7765

Browse files
authored
Convert example in Store and Access Data guide from ES to DS (#2430)
1 parent efb6054 commit 2ef7765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docusaurus/docs/dev-docs/plugins/guides/store-and-access-data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ Use the `plugin::your-plugin-slug.the-plugin-content-type-name` syntax for conte
170170
Here is how to find all the entries for the `my-plugin-content-type` collection type created for a plugin called `my-plugin`:
171171

172172
```js
173-
// Using the Entity Service API
174-
let data = await strapi.entityService.findMany('plugin::my-plugin.my-plugin-content-type');
173+
// Using the Document Service API
174+
let data = await strapi.documents('plugin::my-plugin.my-plugin-content-type').findMany();
175175

176176
// Using the Query Engine API
177177
let data = await strapi.db.query('plugin::my-plugin.my-plugin-content-type').findMany();

0 commit comments

Comments
 (0)