I updated the version of Strapi from 4.4.3 to 4.11.1 and noticed that there was a change in the modifiedData(useCMEditViewDataManager).
Previously in the variable modifiedData
specifically in the values related to Relations I had access to the attributes of the relation, now there is only href, id, mainField(the value of Entry title) and publicationState
.
Is it possible to populate the fields from the relationship as before?
Example before it was like that
...
{ blogs:
{
"id": 4,
"createdAt": "2023-04-26T18:06:35.753Z",
"updatedAt": "2023-04-26T18:06:35.753Z",
"title": "The latest at Asd",
"handle": "news"
}
}
...
Now this has become an array (not a problem) but fields like handle
is missing
...
{
blogs: [
{
"id": 4,
"title": "The latest at Asd",
"href": "/content-manager/collectionType/api::blog.blog/4",
"publicationState": false,
"mainField": "The latest at Asd",
"__temp_key__": "a0"
}
]
}
...