-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using PATCH for update / edit #370
Comments
React admin always sends all the data, this behavior would need to be changed beforehand for this feature to be useful. |
yes, but specific PATCH format (merge-patch+json) may send all the data. And I think I found something about this partial PATCH in React Admin issues. Will send link here in a moment. |
Probably more relevant than anything below is this piece of code from React Admin repo: and also this one, but not sure how much is it related: But this may be more relevant: I am hopefully not spamming this, will go through internal code and try to understand how this works. |
I am using react-admin as the front-end. In my case, the backend API uses some sort of validation and does not allow |
I figured it out in a custom data provider:
where the
now, only the altered fielt sent in request body with a |
Description
In this line in code
admin/src/hydra/dataProvider.js
Line 340 in 5badc1f
is forced PUT for update operation. s it posible to somehow detect if schema is using
put
orpatch
? JsonLD is displaying this information.The text was updated successfully, but these errors were encountered: