Skip to content

Add documentation for populating relations with GraphQL API #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dev-docs-github-app-dev[bot]
Copy link

This PR adds new documentation to explain how to use the populate parameter in the Strapi GraphQL API to fetch related data along with your main query.

The new documentation covers:

  • Basic usage of the populate parameter to include related fields in GraphQL queries
  • Deep population of nested relations using dot notation
  • Populating media fields
  • Populating dynamic zones with fragments

These updates will help developers better understand how to efficiently retrieve related data in a single GraphQL request, improving the performance and user experience of their Strapi-powered applications.

Copy link
Author

This pull request was created by AI Agent. Please review the changes and provide feedback. Context used:

{
  "docsToCreate": [
    {
      "filePath": "docusaurus/docs/cms/api/graphql/guides/populate.md",
      "branch": "main"
    }
  ],
  "docsToUpdate": [],
  "relevantCodeFiles": [
    {
      "filePath": "packages/core/content-releases/admin/src/pages/ReleaseDetailsPage.tsx",
      "branch": "develop"
    },
    {
      "filePath": "packages/core/content-releases/admin/src/pages/ReleasesPage.tsx",
      "branch": "develop"
    },
    {
      "filePath": "packages/core/content-releases/admin/src/components/ReleaseActionMenu.tsx",
      "branch": "develop"
    },
    {
      "filePath": "packages/core/content-releases/admin/src/components/ReleaseActionModal.tsx",
      "branch": "develop"
    }
  ],
  "relevantCodeRepo": "team-dev-docs/strapi",
  "relevantDocsFiles": [
    {
      "filePath": "docusaurus/docs/cms/api/graphql.md",
      "branch": "main"
    },
    {
      "filePath": "docusaurus/docs/cms/api/graphql/locale.md",
      "branch": "main"
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants