ra-data-hasura-graphql
ra-data-hasura-graphql copied to clipboard
Fixes: Query Issues and Export Issue
This PR fixes couple of things
- using
_in
does not work for querying field with array values.
# model
user {
name: String!
assignees: jsonb # array
}
# let's say we want to query the user with `assignees` of [1,2]
# this will not work
query {
user(where: {assignees: {_in: [1,2]}}) {
name
}
}
# this will work
query {
user(where: {assignees: {_contains: [1,2]}}) {
name
}
}
- field with
_
as starting characters are ignored. Im not sure if this is intentional but we can't force the users to avoid adding_
at the start. - removed
dist
directory from.gitignore
for installing package directly from git - export
buildVariables
fyi @jasper95 ~ https://github.com/hasura/ra-data-hasura/issues/13#issuecomment-762837297
Hi! This is a crucial change that I need in my project. But it seems that because of the porting over of this package to here, this PR is not getting merged. @jasper95 can you please make this PR with referring to this issue in the other repository...
@sankalpmukim - this library is no longer maintained and has been moved to: https://github.com/hasura/ra-data-hasura