Skip to content

The mutation name in ValidationException #91

@am-kantox

Description

@am-kantox

Imagine the following code:

begin
  MutationA.run! params
  MutationB.run! params
rescue ValidationException => e
  ...
end

It would be really fine to have a quick access to the cause of the error, like a mutation name. At the moment, everything we got there is the Outcome instance, wrapped with ValidationException.

In fact, the back-reference to the mutation might be useful in many other cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions