rayman1104 / ra-data-nestjsx-crud

Data provider which integrates React Admin with NestJS CRUD library
MIT License
100 stars 27 forks source link

Add option to force "fullUpdates" #32

Open Brunni opened 2 years ago

Brunni commented 2 years ago

We had difficulities using this provider when having a strict validation on the entities.

To make this work, we removed the logic to only send changed values during the update request:

update: (resource, params) => {
    //Hint: We changed this code here manually to provide full updates always. We should do pull-request for this option.
    const data = params.data;

Perhaps we can pull this back into this library as an additional option during creation (e.g. {forceFullUpdates: true})