From 078a1efd50c39dca8afb40ef81d197c9ab358c56 Mon Sep 17 00:00:00 2001 From: vladar Date: Wed, 14 Dec 2016 20:18:10 +0700 Subject: [PATCH] Added GraphQL\GraphQL::setDefaultFieldResolver() --- src/GraphQL.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/GraphQL.php b/src/GraphQL.php index 0b1fd8c..8574236 100644 --- a/src/GraphQL.php +++ b/src/GraphQL.php @@ -81,6 +81,14 @@ class GraphQL return array_values(Directive::getInternalDirectives()); } + /** + * @param callable $fn + */ + public static function setDefaultFieldResolver(callable $fn) + { + Executor::setDefaultFieldResolver($fn); + } + /** * @param PromiseAdapter|null $promiseAdapter */