-
Notifications
You must be signed in to change notification settings - Fork 154
magento graphql-ce#970 Cannot return several errors for one GraphQL request #1013
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look good. It's a needed change
* @param LocalizedException $exception | ||
* @return $this | ||
*/ | ||
public function addError(LocalizedException $exception): self |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer an immutable type of objects. We can initialization to construct
. But it's a recommendation but not a requirement.
Hi @sidolov, thank you for the review.
|
@lenaorobei, could you provide a case where it is possible to test it? I had hopes on #961, but it is fixed now. I just wanted to verify that both |
…one GraphQL request #1013
Hi @lenaorobei, thank you for your contribution! |
addError
method ofGraphQlInputException
in order to show multiple input validation error messages.Example: