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 */