mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 12:56:05 +03:00
Added GraphQL\GraphQL::setDefaultFieldResolver()
This commit is contained in:
parent
2043cc7e75
commit
078a1efd50
@ -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
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user