Table of Contents

Documentation / queries/QueryProvider

queries/QueryProvider

Classes

QueryProvider

Represents an implementation of IQueryProvider

Implements

Constructors

new QueryProvider()

new QueryProvider(_microservice, _apiBasePath): QueryProvider

Initializes a new instance of QueryProvider

Parameters
_microservice

string

Name of the microservice to provide queries for.

_apiBasePath

string

Base path for the API to use for the query.

Returns

QueryProvider

Defined in

queries/QueryProvider.ts:18

Methods

get()

get<T>(queryType): T

Gets a new instance of a specific query type.

Type Parameters

T extends IQuery

Parameters
queryType

Constructor<T>

Type of query to get an instance of.

Returns

T

Implementation of

IQueryProvider.get

Defined in

queries/QueryProvider.ts:21