hasura / ra-data-hasura

react-admin data provider for Hasura GraphQL Engine
MIT License
336 stars 70 forks source link

fix #75 nested keys with array values #76

Closed fkowal closed 2 years ago

fkowal commented 2 years ago

given

filter: {"table1#table2":["value1"]}

expected a query where

where: {"table1":{"table2":{_in:["value1"]}}}

not where: {"table1#table2":{_in:["value1"]}}

praveenweb commented 2 years ago

Hi @fkowal - Thanks for the PR.

I will run some tests around this and see if this can be merged. Appreciate your patience.

fkowal commented 2 years ago

since you're mentioning tests

https://github.com/fkowal/ra-data-hasura/commit/cb371eb6d651e075553208dba933c9a9e6aa8df0

i've got a base setup for tests

that would make future contributions easier for the contributors

but I don't want that to be part of this PR

arjunyel commented 2 years ago

@fkowal hi friend, is it okay if we use your base setup for tests?

cpursley commented 2 years ago

Thanks @arjunyel ~ can you create a release?

arjunyel commented 2 years ago

@cpursley hi friend, new release is out