Constructors
constructor
Properties
main
Methods
get
get( type: null | string | string[], criteria: QueryCriteria, projection: string[], sort?: Record<string, -1 | 1>, page?: number, limit?: number, elementContext?: Element, atTime?: string, skipParsing?: boolean,): Promise<ApiResponse<ElementDataWrapper[]>> Parameters
- type: null | string | string[]
- criteria: QueryCriteria
- projection: string[]
Optional
sort: Record<string, -1 | 1>- page: number = 1
- limit: number = LISTING_PER_PAGE
Optional
elementContext: ElementOptional
atTime: string- skipParsing: boolean = false
getDynamicContext
getElements
getElements<T extends Element>( ...args: [ type
: null | string | string[], criteria
: QueryCriteria, projection
: string[], sort
?: Record<string, -1 | 1>, page
: number, limit
: number, elementContext
?: Element, atTime
?: string, skipParsing
: boolean, ],): Promise<null | IListingElementsResponse<T>> Parameters
- ...args: [
type: null
| string
| string[],
criteria: QueryCriteria,
projection: string[],
sort?: Record<string, -1 | 1>,
page: number,
limit: number,
elementContext?: Element,
atTime?: string,
skipParsing: boolean,
]
getFirstElement
getFirstElement<T extends Element>( ...args: [ type
: null | string | string[], criteria
: QueryCriteria, projection
: string[], sort
?: Record<string, -1 | 1>, page
: number, limit
: number, elementContext
?: Element, atTime
?: string, skipParsing
: boolean, ],): Promise<null | T> Parameters
- ...args: [
type: null
| string
| string[],
criteria: QueryCriteria,
projection: string[],
sort?: Record<string, -1 | 1>,
page: number,
limit: number,
elementContext?: Element,
atTime?: string,
skipParsing: boolean,
]
Returns Promise<null | T>
getListingConfigFromMongoQuery
loadElementQuery
loadListingConfig
parseConfig
parseCriteria
transformTypes
transformTypes(types: null | string | string[]): null | string[] Parameters
- types: null | string | string[]
Returns null | string[]