Skip to content

Insert/Update permissions errors #6

Description

@Its-Alex

Hi,

I have a problem with this plugins, when I try to insert/update with the created mutations I have an error:

GraphQL error: permission denied for table X

I'm using this query with an object for xPatch that contains only values that I want to insert/update:

mnUpdateX(input: {mnPatch: : $xPatch}) {
   clientMutationId
}

It seems that this mutation needs permissions on all columns of table, because it works with:

GRANT SELECT, INSERT, UPDATE, DELETE ON x TO x_user;

Is there a way to make it works with some columns only ? For example:

GRANT SELECT, INSERT(id, column_a), UPDATE(id, column_b), DELETE ON x TO x_user;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions