Skip to content

Commit cc99888

Browse files
authored
Fixes issue #2355 (#2356)
1 parent 8f48334 commit cc99888

File tree

1 file changed

+4
-2
lines changed
  • docusaurus/docs/dev-docs/api/document-service

1 file changed

+4
-2
lines changed

docusaurus/docs/dev-docs/api/document-service/populate.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ To populate while updating documents:
314314
<Request title="Example request">
315315

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

353354
```js
354-
strapi.documents("api::article.article").publish("cjld2cjxh0000qzrmn831i7rn", {
355+
strapi.documents("api::article.article").publish({
356+
documentId: "cjld2cjxh0000qzrmn831i7rn",
355357
populate: ["headerImage"],
356358
});
357359
```

0 commit comments

Comments
 (0)