Table of Contents

Documentation / queries/IObservableQueryFor

queries/IObservableQueryFor

Interfaces

IObservableQueryFor<TDataType, TArguments>

Defines the base of a query.

Extends

Type Parameters

TDataType

Type of model the query is for.

TArguments = object

Optional type of arguments to use for the query.

Properties

defaultValue

readonly defaultValue: TDataType

Defined in

queries/IObservableQueryFor.ts:23

requiredRequestArguments

readonly requiredRequestArguments: string[]

Defined in

queries/IObservableQueryFor.ts:22

route

readonly route: string

Defined in

queries/IObservableQueryFor.ts:20

routeTemplate

readonly routeTemplate: TemplateDelegate

Defined in

queries/IObservableQueryFor.ts:21

Accessors

paging
Get Signature

get paging(): Paging

Gets the paging for the query.

Returns

Paging

Set Signature

set paging(value): void

Sets the paging for the query.

Parameters
value

Paging

Returns

void

Inherited from

IQuery.paging

Defined in

queries/IQuery.ts:25

sorting
Get Signature

get sorting(): Sorting

Gets the sorting for the query.

Returns

Sorting

Set Signature

set sorting(value): void

Sets the sorting for the query.

Parameters
value

Sorting

Returns

void

Inherited from

IQuery.sorting

Defined in

queries/IQuery.ts:15

Methods

setApiBasePath()

setApiBasePath(apiBasePath): void

Set the base path for the API to use for the query. This is used to prepend to the path to any fetch operation.

Parameters
apiBasePath

string

Base path for the API

Returns

void

Inherited from

IQuery.setApiBasePath

Defined in

ICanBeConfigured.ts:18

setMicroservice()

setMicroservice(microservice): any

Set the microservice to be used for the query. This is passed along to the server to identify the microservice.

Parameters
microservice

string

Name of microservice

Returns

any

Inherited from

IQuery.setMicroservice

Defined in

ICanBeConfigured.ts:12

subscribe()

subscribe(callback, args?): ObservableQuerySubscription<TDataType>

Subscribe to the query. This will create a subscription onto the server.

Parameters
callback

OnNextResult<QueryResult<TDataType>>

The callback that will receive result from the server.

args?

TArguments

Optional arguments for the query - depends on whether or not the query needs arguments.

Returns

ObservableQuerySubscription<TDataType>

.

Defined in

queries/IObservableQueryFor.ts:31

Type Aliases

OnNextResult()<TDataType>

OnNextResult<TDataType>: (data) => void

The delegate type representing the callback of result from the server.

Type Parameters

TDataType

Parameters

data

TDataType

Returns

void

Defined in

queries/IObservableQueryFor.ts:12