System Information
- Strapi Version: 5.2
- Operating System: MacOS 15.1
- Database: Postgres
- Node Version: 18
- NPM Version:
- Yarn Version:
I have added a component relation to the ‘User’ content type and am able to get that data either via Rest of GraphQL. However, I am not able to update that data with either Rest PUT or GraphQL mutate.
So, for instance, my user schema looks like this:
{
"id": 1,
"username": "tester2",
"email": "test@test.com",
"provider": "local",
"confirmed": true,
"blocked": false,
"createdAt": "2024-11-06T16:21:09.677Z",
"updatedAt": "2024-11-11T23:31:21.258Z",
"documentId": "{{documentId}}",
"publishedAt": "2024-11-11T23:19:36.621Z",
"role": {
"id": 1,
"name": "Authenticated",
"description": "Default role given to authenticated user.",
"type": "authenticated",
"createdAt": "2024-10-31T19:35:53.421Z",
"updatedAt": "2024-11-11T23:39:03.858Z",
"documentId": "{{documentId}}",
"publishedAt": "2024-10-31T19:35:53.421Z"
},
"personalDetails": {
"id": 1,
"firstName": "Peter",
"lastName": "Parker",
"linkedInProfile": null,
"gitHubProfile": null,
"portfolioSite": null,
"personalWebsite": null,
"phone": null,
"city": "Somewhere",
"state": "TX"
}
}
I am not able to save any updates to the nested “personalDetails” object. No errors when sending data over.