Alokai
You are reading the documentation for connect v1, which is no longer the latest version. Switch to connect v2

ApiContext

export interface ApiContext<CONFIG, CLIENT, REQUEST, RESPONSE> {
	client: CLIENT;
	config: CONFIG;
	customQueries: Record<string, CustomQueryFunction>;
	extendQuery: ExtendQuery;
	extensions: any;
	req: REQUEST;
	res: RESPONSE;
}

Properties

NameRequiredTypeDescription
clientRequiredCLIENT
configRequiredCONFIG
customQueriesRequiredRecord<string, CustomQueryFunction>
extendQueryRequiredExtendQuery
extensionsRequiredany
reqRequiredREQUEST
resRequiredRESPONSE

Referenced Types

On this page