Skip to content

This site describes solve-engine 2.44.0, the version npm installs.

createQueryResolver

function createQueryResolver(opts): QueryResolverPackage;

Defined in: packages/engine/src/resolvers/QueryResolver.ts:171

Build an async resolver and its plugin function together.

The two halves have to agree on a cache key, and writing them separately is how they drift. This returns a matched pair.

ParameterType
optsQueryResolverOptions

QueryResolverPackage

The resolver and the plugin function to register alongside it.