Skip to content

Latest commit

 

History

History
152 lines (130 loc) · 6.51 KB

resolver-map.md

File metadata and controls

152 lines (130 loc) · 6.51 KB

Resolver map

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".

Specification

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.

Resolving f