In order to respond to queries, a schema needs to have resolve functions for all fields. Resolve functions cannot be included in the GraphQL schema language, so they must be added separately. This collection of functions is called the "resolver map".
A resolverMap
is simple an object implementing Overblog\GraphQLBundle\Resolver\ResolverMapInterface
you can also just extend the concrete class Overblog\GraphQLBundle\Resolver\ResolverMap
and override map
method and return an array
or any ArrayAccess
and Traversable
implementation.