tirumaraiselvan / graphql-engine

Blazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control
https://hasura.io
Apache License 2.0
2 stars 0 forks source link

While defining remote relationship, using _and in where is not working #53

Closed nizar-m closed 4 years ago

nizar-m commented 5 years ago

For example, defining remote relationship like this fails

 remote_field:
    hge_remote_baseball_action_plays:
      arguments:
        where:
          _and:
          - baseball_event_state_id:
              _eq: $id
          - _not:
              baseball_event_state_id:
                _neq: $id

with error:

  "path": "$.args.remote_relationships[0]",
  "error": "UnsupportedMultipleElementLists :| []",
  "code": "remote-schema-error"
tirumaraiselvan commented 5 years ago

Fixed by https://github.com/tirumaraiselvan/graphql-engine/commit/1ddd4f239f9003d69fd301179365e470c184cd64

If a remote join argument is a ListType, then it will be stripped completely from the remoteField i.e. no user argument can be "appended" to this list type.

tirumaraiselvan commented 4 years ago

@nizar-m Can we close this?

nizar-m commented 4 years ago

Yes