Skip to content

Clarify dynamic zone fragment populate syntax#3233

Open
Akash5908 wants to merge 1 commit into
strapi:mainfrom
Akash5908:docs/clarify-dynamic-zone-fragments-clean
Open

Clarify dynamic zone fragment populate syntax#3233
Akash5908 wants to merge 1 commit into
strapi:mainfrom
Akash5908:docs/clarify-dynamic-zone-fragments-clean

Conversation

@Akash5908

Copy link
Copy Markdown
Contributor

Description

This PR improves and clarifies the documentation for dynamic zone fragment population (using the on syntax) in the Document Service API and REST API documentation.

What does it do?

Clarifies in the Document Service API

populate.md
that standard populate queries (like populate: '*' or populate: ['dzName']) only fetch default scalar fields of components, and explains that fragment population via the on property is required to retrieve nested relations, media, or nested components.
Updates the REST API reference

populate-select.md
to clearly differentiate between scalar-only populate vs. component-specific nested populate using on.
Updates the REST API guide

understanding-populate.md
to explain the concept behind why standard/regular populates do not fetch nested relations/media inside component templates and how fragment population solves it.
Why is it needed? Users frequently face issues where relations or media fields nested inside components of dynamic zones do not load when doing a standard populate query. The previous documentation did not clearly explain that regular populates only fetch component scalars and that the fragment on syntax must be used to populate these nested fields.

Related issue(s)/PR(s)
Fixes #1386

@vercel

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview, Comment Jun 6, 2026 7:25am

Request Review

@pwizla pwizla changed the title docs(api): clarify dynamic zone fragment populate syntax Clarify dynamic zone fragment populate syntax Jun 8, 2026
@pwizla pwizla changed the title Clarify dynamic zone fragment populate syntax docs(api): Clarify dynamic zone fragment populate syntax Jun 8, 2026
@pwizla pwizla changed the title docs(api): Clarify dynamic zone fragment populate syntax Clarify dynamic zone fragment populate syntax Jun 8, 2026
@pwizla pwizla self-assigned this Jun 8, 2026
@pwizla pwizla added pr: chore source: CMS contribution PRs that are part of the Documentation Contribution Program labels Jun 8, 2026
@pwizla pwizla added this to the 6.28.0 milestone Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution PRs that are part of the Documentation Contribution Program pr: chore source: CMS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make dynamic zone fragment documentation more clear

2 participants