Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In remote relationship with nested fields, the parent fields should not be of type list #56

Open
nizar-m opened this issue Sep 11, 2019 · 2 comments

Comments

@nizar-m
Copy link
Collaborator

nizar-m commented Sep 11, 2019

No description provided.

@tirumaraiselvan
Copy link
Owner

@nizar-m Can you also describe the remote schema and the remote relationship to see this?

@nizar-m
Copy link
Collaborator Author

nizar-m commented Sep 11, 2019

Let us say we have author ---remote arr_rel--> remote_articles ---obj_rel--> publisher .
This should throw an error

type: create_remote_relationship
args:
  name: nestedPublisher
  table: author
  hasura_fields:
   - id
   - publisher_ids 
  remote_schema: remote_articles
  remote_field:
     articles:
        arguments:
          author_id : $id
        field:
          publisher:
            arguments:
              where:
                publisher_id:
                  _in: $publisher_ids

So should be this
local ---remote obj_rel--> remote_field ---arr_rel--> remote_sub_field ---obj_rel--> remote_leaf

The last relationship can be an object or array relationship. But all the in between ones should be object relationships.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants