Skip to content

Insert/Update permissions errorsΒ #6

@Its-Alex

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;

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions