Hello,
in my article schema i have a dynamiczone with 3 components blog.image, blog.rich-text and blog.gallery. When i call the rest api by “/articles?populate=*” i dont get the full data from those components. The nested images and dynamic zones are missing.
Am i doing something wrong or is it a bug?
This is my article schema:
{
"kind": "collectionType",
"collectionName": "articles",
"info": {
"singularName": "article",
"pluralName": "articles",
"displayName": "Articles",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string"
},
"content": {
"type": "dynamiczone",
"components": [
"blog.image",
"blog.rich-text",
"blog.gallery"
],
"required": false
},
"category": {
"type": "relation",
"relation": "manyToOne",
"target": "api::article-category.article-category",
"inversedBy": "articles"
},
"slug": {
"type": "string"
},
"image": {
"type": "media",
"multiple": false,
"required": true,
"allowedTypes": [
"images",
"files",
"videos"
]
},
"author": {
"type": "relation",
"relation": "manyToOne",
"target": "api::editor.editor",
"inversedBy": "articles"
},
"intro": {
"type": "text",
"required": true
}
}
}
The nested image component:
{
"collectionName": "components_image_images",
"info": {
"displayName": "Image",
"icon": "image",
"description": ""
},
"options": {},
"attributes": {
"data": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos"
]
},
"caption": {
"type": "string",
"required": true
}
}
}
The nested gallery component:
{
"collectionName": "components_gallery_galleries",
"info": {
"displayName": "Gallery",
"icon": "images",
"description": ""
},
"options": {},
"attributes": {
"images": {
"type": "component",
"repeatable": true,
"component": "blog.image"
},
"title": {
"type": "string"
}
}
}
System Information
- Strapi Version: 4.0.0-beta.12
- Operating System: macOS Big Sur 11.5.2
- Database: PostgreSQL
- Node Version: 12.20.1
- Yarn Version: 3.1.0