Skip to content

Commit

Permalink
Update populating.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pwizla authored Dec 11, 2023
1 parent fbc5873 commit 994c4cf
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions docusaurus/docs/dev-docs/api/query-engine/populating.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,21 @@ Complex populating can also be achieved by applying `where` filters and select o

```js
strapi.db.query('api::article.article').findMany({
populate: {
where: {
relationA: {
where: {
name: {
$contains: 'Strapi',
},
name: {
$contains: 'Strapi',
},
},
},

repeatableComponent: {
select: ['someAttributeName'],
orderBy: ['someAttributeName'],
populate: {
componentRelationA: true,
},
repeatableComponent: {
select: ['someAttributeName'],
orderBy: ['someAttributeName'],
populate: {
componentRelationA: true,
dynamiczoneA: true,
},

dynamiczoneA: true,
},
});
```
Expand Down Expand Up @@ -94,4 +91,4 @@ strapi.db.query('api::article.article').findMany('api::article.article', {
},
},
});
```
```

1 comment on commit 994c4cf

@vercel
Copy link

@vercel vercel bot commented on 994c4cf Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

documentation – ./

docs-vercel-v4.strapi.io
documentation-strapijs.vercel.app
documentation-git-main-strapijs.vercel.app

Please sign in to comment.