Added GraphQL\GraphQL::setDefaultFieldResolver()

This commit is contained in:
vladar 2016-12-14 20:18:10 +07:00
parent 2043cc7e75
commit 078a1efd50

View File

@ -81,6 +81,14 @@ class GraphQL
return array_values(Directive::getInternalDirectives()); return array_values(Directive::getInternalDirectives());
} }
/**
* @param callable $fn
*/
public static function setDefaultFieldResolver(callable $fn)
{
Executor::setDefaultFieldResolver($fn);
}
/** /**
* @param PromiseAdapter|null $promiseAdapter * @param PromiseAdapter|null $promiseAdapter
*/ */