Interface AdminPlugin<StartParams, ClientResponse>

interface AdminPlugin<StartParams, ClientResponse> {
    buildResolvers: ((stream: Duplex, ruleParameters: {
        [key: string]: any;
    }) => IResolvers);
    enableDebug?: (() => void);
    reset?: (() => MaybePromise<void>);
    schema: string | DocumentNode;
    start: ((options: StartParams) => MaybePromise<ClientResponse>);
    stop: (() => MaybePromise<void>);
}

Type Parameters

  • StartParams
  • ClientResponse

Implemented by

Properties

buildResolvers: ((stream: Duplex, ruleParameters: {
    [key: string]: any;
}) => IResolvers)
enableDebug?: (() => void)
reset?: (() => MaybePromise<void>)
schema: string | DocumentNode
start: ((options: StartParams) => MaybePromise<ClientResponse>)
stop: (() => MaybePromise<void>)