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

What if there is no select permission for the hasura column used in defining remote relationshp? #58

Open
nizar-m opened this issue Sep 16, 2019 · 1 comment

Comments

@nizar-m
Copy link
Collaborator

nizar-m commented Sep 16, 2019

Let us say in profiles table, role user does not have select permission on column id.
But id column is also used in defining a remote relationship user_remote. Currently the following query

{
  profiles {
    user_remote {
      username
    }
  }
}

gives error

errors:
- extensions:
    path: "$.selectionSet.profiles_by_pk"
    code: unexpected
  message: could not lookup "id" in 'profiles'
@MarcelloTheArcane
Copy link

I'm not sure if this makes sense, but if the user has select permissions for user_remote, they should have id permissions too?

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