Interface QueryContract<DocumentType>
Methods
count
- count(): Promise<number>
Returns Promise<number>
distinct
- distinct<T = unknown>(key: string): Promise<T[]>
Returns Promise<T[]>
explain
- explain(verbosity?: ExplainVerbosityLike): Promise<Document>
Parameters
Optional
verbosity: ExplainVerbosityLike
Returns Promise<Document>
limit
- limit(number: number): this
Returns this
skip
- skip(number: number): this
Returns this
sortBy
- sortBy(field: string, direction?: SortDirection): this
Parameters
- field: string
Optional
direction: SortDirection
Returns this
Returns an iterator on all matching documents.