Skip to content

updateReview mutation errors when no content is provided #341

@etoler1841

Description

@etoler1841

Describe the bug
When updating a product review's rating but not its content, GraphQL returns an error. (Error message: "The comment failed to update")

To Reproduce
Execute an updateReview mutation with only the clientMutationId, id, and rating fields.

Expected behavior
The rating field should update to the new value while leaving the content field in its original state.

Screenshots
image

Additional context
This bug also occurs if the content argument is included but is identical to the existing value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions