diff --git a/src/GraphQL/Mutation/MutationType.php b/src/GraphQL/Mutation/MutationType.php index 0fa31bc6..87e269c3 100644 --- a/src/GraphQL/Mutation/MutationType.php +++ b/src/GraphQL/Mutation/MutationType.php @@ -617,7 +617,11 @@ public function buildDataObjectMutations(&$config = [], $context = []) $resolver = $me->getUpdateObjectResolver($processors, $localeService, $newInstance, $me->omitPermissionCheck); - call_user_func_array($resolver, [$value, $args, $context, $info]); + $returnValue = call_user_func_array($resolver, [$value, $args, $context, $info]); + if (isset($returnValue['success']) === true && + $returnValue['success'] === false) { + return $returnValue; + } if (isset($args['omitMandatoryCheck'])) { $newInstance->setOmitMandatoryCheck($args['omitMandatoryCheck']);