ra-data-hasura-graphql icon indicating copy to clipboard operation
ra-data-hasura-graphql copied to clipboard

Fixes: Query Issues and Export Issue

Open jasper95 opened this issue 4 years ago • 3 comments

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

jasper95 avatar Nov 29 '20 01:11 jasper95

fyi @jasper95 ~ https://github.com/hasura/ra-data-hasura/issues/13#issuecomment-762837297

cpursley avatar Jan 19 '21 13:01 cpursley

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 avatar Feb 08 '22 10:02 sankalpmukim

@sankalpmukim - this library is no longer maintained and has been moved to: https://github.com/hasura/ra-data-hasura

cpursley avatar Feb 08 '22 12:02 cpursley