interface IApqResolver
Since 0.3.0

The surface the transports consume.

Declared as a port rather than the concrete class so a transport depends on the behaviour it uses, and a test can supply a double without casting past the class's private fields.

Methods

resolve(params: { query?: string; extensions?: Record<string, unknown>; }): Promise<ApqResolveResult> | ApqResolveResult

Resolve APQ for a request.

Usage

import { type IApqResolver } from "graphql-plugin/src/index.ts";