Vaheed Sadeghi

Results 2 comments of Vaheed Sadeghi

I am using react-admin as the front-end. In my case, the backend API uses some sort of validation and does not allow `_id` to be modified. So it cannot accept...

I figured it out in a custom data provider: ``` update: (resource, params) => httpClient(`${apiUrl}/${resource}/${params.id}`, { method: 'PATCH', body: JSON.stringify(diff(params.data, params.previousData)), }).then(({ json }) => ({ data: json })), ```...