Open rubenghio opened 4 years ago
I am using a react-admin client to invoke my json-api backend.....
I am getting the following URL:
http://localhost:4500/parameters?filter[id][]=2&filter[id][]=3&filter[id][]=4
which is returning only one record, because is being traslated to:
[{'name': 'id', 'op': 'eq', 'val': '2'}]
But, in case I run the request with:
http://localhost:4500/parameters?filter=[{"name":"id","op":"in","val":[2,3,4]}]
is working correctly......
It seems like the first request is not being interpreted as an IN
I am using a react-admin client to invoke my json-api backend.....
I am getting the following URL:
http://localhost:4500/parameters?filter[id][]=2&filter[id][]=3&filter[id][]=4
which is returning only one record, because is being traslated to:
[{'name': 'id', 'op': 'eq', 'val': '2'}]
But, in case I run the request with:
http://localhost:4500/parameters?filter=[{"name":"id","op":"in","val":[2,3,4]}]
is working correctly......
It seems like the first request is not being interpreted as an IN