在 Content API 调用中应使用 documentId 代替 id
🌐 documentId should be used instead of id in Content API calls
Page summary:在 Strapi 5 中,
documentId字段取代了id,用于在内容 API 调用(REST API 和 GraphQL)中识别文档,这是文档服务 API 过渡的一部分。🌐 In Strapi 5, the
documentIdfield replacesidfor identifying documents in Content API calls (REST API and GraphQL) as part of the Document Service API transition.
在 Strapi 5 中,处理内容的底层 API 是 Document Service API,在 Content API 调用(REST API 和 GraphQL)中应通过其 documentId 调用文档。
🌐 In Strapi 5, the underlying API handling content is the Document Service API and documents should be called by their documentId in Content API calls (REST API & GraphQL).
此页面是重大更改数据库的一部分,提供关于重大更改的信息以及从 Strapi v4 迁移到 Strapi 5 的附加说明。
🌐 This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.