diff --git a/docusaurus/docs/dev-docs/api/document-service/populate.md b/docusaurus/docs/dev-docs/api/document-service/populate.md index d1126b22d9..541a05a5ff 100644 --- a/docusaurus/docs/dev-docs/api/document-service/populate.md +++ b/docusaurus/docs/dev-docs/api/document-service/populate.md @@ -314,7 +314,8 @@ To populate while updating documents: ```js -strapi.documents("api::article.article").update("cjld2cjxh0000qzrmn831i7rn", { +strapi.documents("api::article.article").update({ + documentId: "cjld2cjxh0000qzrmn831i7rn", data: { title: "Test Article Update", }, @@ -351,7 +352,8 @@ To populate while publishing documents (same behavior with `unpublish()` and `di ```js -strapi.documents("api::article.article").publish("cjld2cjxh0000qzrmn831i7rn", { +strapi.documents("api::article.article").publish({ + documentId: "cjld2cjxh0000qzrmn831i7rn", populate: ["headerImage"], }); ```