这是indexloc提供的服务,不要输入任何密码
Skip to content

Mutations affect all rows when initiated with "null" primary key instead of returning an error. #1981

@ShivamBh

Description

@ShivamBh

On initiating a mutation for an "edit item" action, based on the id(primary key) of the item in question, if the primary key provided is "null", all the rows in the table are affected. The desired behavior would be to return an error since the primary key is non-nullable.

Here is a screenshot of the issue:
hasura-null-id

As you see, all 5 rows have been affected.

Here is the reproduction link:
https://null-id-mutation.herokuapp.com/console/

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c/serverRelated to serverk/bugSomething isn't workingp/urgentImmediate action required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions