public function ResolverRegistry::__construct in GraphQL 8.4
ResolverRegistry constructor.
Parameters
callable|null $defaultFieldResolver:
callable|null $defaultTypeResolver:
File
- src/
GraphQL/ ResolverRegistry.php, line 60
Class
- ResolverRegistry
- Contains all the mappings how to resolve a GraphQL request.
Namespace
Drupal\graphql\GraphQLCode
public function __construct(callable $defaultFieldResolver = NULL, callable $defaultTypeResolver = NULL) {
$this->defaultFieldResolver = $defaultFieldResolver ?: [
$this,
'resolveFieldDefault',
];
$this->defaultTypeResolver = $defaultTypeResolver ?: [
$this,
'resolveTypeDefault',
];
}