josx / ra-data-feathers

A feathers rest client for react-admin
MIT License
157 stars 53 forks source link

`createMany` unsupported #174

Closed strarsis closed 2 years ago

strarsis commented 2 years ago

The createMany method is unsupported: FeathersJS restClient action type createMany

It is very useful for some bulk operations, like a CSV import from react-admin.

josx commented 2 years ago

I dont see createMany in the reactadmin doc as available, where did you see it? I have check it here https://marmelab.com/react-admin/DataProviders.html

strarsis commented 2 years ago

Maybe this is just a special action introduced by react-admin-import-csv? https://github.com/benwinding/react-admin-import-csv/tree/9b7b840f76270fe7c444710881ed781a8d83c830#reducing-requests-createmany-and-updatemany

In that case the action has to be added by decorator. I initially had issues adding it - but found out that ra-data-feathers uses a function which has to be wrapped for decoration: https://github.com/josx/ra-data-feathers/issues/176