FusionWorks / react-admin-nestjsx-crud-dataprovider

Data provider which integrates React Admin with NestJS CRUD library
132 stars 26 forks source link

GET_MANY gives Invalid Filter Value on the server #4

Closed Guarrakesh closed 5 years ago

Guarrakesh commented 5 years ago

Hi, thank you for this data provider first of all.

I noticed that when React Admin tries to make a GET_MANY request (with multiple ids), the data provider produces a filter like filter: {"id":["firstId","secondId"]}

but the NestJS Crud library doesn't accept a format like this and gives an error Invalid filter value . May be you should do a filter with in clause, like id||in||firstId,secondId