Skip to content

Update documentation for use of document ID in Strapi 5 #25

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 pull request updates the Strapi documentation to reflect the changes in how content is accessed in Strapi 5.

The key changes include:

  • Updated the documentation to explain that in Strapi 5, content is accessed using the documentId field instead of the previous id field.
  • Added examples to demonstrate the differences between the Strapi 4 and Strapi 5 data structures and API responses.
  • Provided guidance on migrating from Strapi 4 to Strapi 5, including recommendations on using documentId instead of id going forward.

These documentation updates will help users understand and navigate the breaking changes related to the use of document IDs when upgrading from Strapi 4 to Strapi 5.

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/migration/v4-to-v5/breaking-changes/use-document-id.md",
      "branch": "main"
    }
  ],
  "docsToUpdate": [],
  "relevantCodeFiles": [
    {
      "filePath": "packages/core/admin/ee/admin/src/pages/SettingsPage/pages/AuditLogs/ListPage.tsx",
      "branch": "develop"
    },
    {
      "filePath": "packages/core/admin/ee/admin/src/pages/SettingsPage/pages/AuditLogs/components/Modal.tsx",
      "branch": "develop"
    }
  ],
  "relevantCodeRepo": "strapi/strapi",
  "relevantDocsFiles": [
    {
      "filePath": "docusaurus/docs/cms/migration/v4-to-v5/breaking-changes/use-document-id.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