IMemoryItemsQuery
Service to query memory items.
export interface IMemoryItemsQuery
Methods
Method | Description |
|---|---|
Starts the query. | |
Sets filter for the query. | |
Sets include for the query. | |
Sets origin for the query. | |
Sets starting page for the query. Backend WILL return no data if the page is greater than total number of pages. Default page: 0 | |
Sets number of memory items to return per page. Default size: 50 | |
Sets sorting for the query. |
Method details
IMemoryItemsQuery.query()method
Starts the query.
query(): Promise<IMemoryItemsQueryResult>;
Returns
Promise<IMemoryItemsQueryResult>
promise of first page of the results
IMemoryItemsQuery.withFilter()method
Sets filter for the query.
withFilter(filter: IMemoryItemsFilterOptions): IMemoryItemsQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
filter | filter to apply |
Returns
memory items query
IMemoryItemsQuery.withInclude()method
Sets include for the query.
withInclude(include: string[]): IMemoryItemsQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
include | string[] | include to apply |
Returns
memory items query
IMemoryItemsQuery.withOrigin()method
Sets origin for the query.
withOrigin(origin: ObjectOrigin | (string & {})): IMemoryItemsQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
origin | ObjectOrigin | (string & {}) | origin to apply. This is an open string union to allow platform-specific origin values in addition to the built-in literals. |
Returns
memory items query
IMemoryItemsQuery.withPage()method
Sets starting page for the query. Backend WILL return no data if the page is greater than total number of pages. Default page: 0
withPage(page: number): IMemoryItemsQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
page | number | zero indexed, must be non-negative |
Returns
memory items query
IMemoryItemsQuery.withSize()method
Sets number of memory items to return per page. Default size: 50
withSize(size: number): IMemoryItemsQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
size | number | desired max number of memory items per page must be a positive number |
Returns
memory items query
IMemoryItemsQuery.withSorting()method
Sets sorting for the query.
withSorting(sort: string[]): IMemoryItemsQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
sort | string[] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. |
Returns
memory items query