Skip to content

Commit

Permalink
Fixes issue #2355 (#2356)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwizla authored Jan 16, 2025
1 parent 8f48334 commit cc99888
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docusaurus/docs/dev-docs/api/document-service/populate.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ To populate while updating documents:
<Request title="Example request">

```js
strapi.documents("api::article.article").update("cjld2cjxh0000qzrmn831i7rn", {
strapi.documents("api::article.article").update({
documentId: "cjld2cjxh0000qzrmn831i7rn",
data: {
title: "Test Article Update",
},
Expand Down Expand Up @@ -351,7 +352,8 @@ To populate while publishing documents (same behavior with `unpublish()` and `di
<Request title="Example request">

```js
strapi.documents("api::article.article").publish("cjld2cjxh0000qzrmn831i7rn", {
strapi.documents("api::article.article").publish({
documentId: "cjld2cjxh0000qzrmn831i7rn",
populate: ["headerImage"],
});
```
Expand Down

0 comments on commit cc99888

Please sign in to comment.