From b6cab4040cdfb6e2676d97aa115a539f23e99150 Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Thu, 28 Jan 2021 11:12:14 +1300 Subject: [PATCH] Compatibility with GraphQL 4 changes --- src/GraphQL/Operations/CopyToStageCreator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GraphQL/Operations/CopyToStageCreator.php b/src/GraphQL/Operations/CopyToStageCreator.php index 0f5f7038..bad88051 100644 --- a/src/GraphQL/Operations/CopyToStageCreator.php +++ b/src/GraphQL/Operations/CopyToStageCreator.php @@ -61,7 +61,7 @@ public function createOperation( return ModelMutation::create($model, $mutationName) ->setType($typeName) ->setPlugins($plugins) - ->setDefaultResolver([VersionedResolver::class, 'resolveCopyToStage']) + ->setResolver([VersionedResolver::class, 'resolveCopyToStage']) ->addResolverContext('dataClass', $model->getSourceClass()) ->addArg('input', 'CopyToStageInputType!'); }