The following is a list of Resolver Wrappers. If you create one that could be useful for the community please open an Issue or Pull Request so that it can be added. Also, learn how to create your own and apply Resolver Wrappers to a Resolver Map.
This Resolver Wrapper applies logging around the resolver. It logs the arguments the Resolver function is called with,
as well as the result. It is useful for troubleshooting and understanding the flow of data in and out of a Resolver.
Selectively apply it using the
highlight option with
embed to pinpoint which Resolvers receive logging. When used
with other wrappers it is recommended that the position be considered as outer wrappers won't include logging.
This wrapper is handy for being able a resolver's result and applying relay pagination to it.
The documentation for the Relay Wrapper is covered in the Relay Pagination Guide.
Note: Sinon must be installed as a
devDependency to be used with this wrapper
spyWrapper adds spies to the Resolver and makes them available on the
state property on the
This is especially handy testing strict scenarios where assertions need to be made around how many times a Resolver was called, what it was called with and what was returned. When used with other Resolver Wrappers it should be considered which order the Spy is applied.