BasesQueryResult
Official
The obsidian#BasesQueryResult contains all of the available information from executing the bases query, applying filters, and evaluating formulas. The data or groupedData should be displayed by your view.
Import:
import { BasesQueryResult } from 'obsidian';Signature:
export class BasesQueryResultConstructor
new BasesQueryResult(app: App, config: BasesViewConfig, allProperties: BasesProperty[], data: BasesEntry[])Constructor.
To get the constructor instance, use getBasesQueryResultConstructor from obsidian-typings/implementations.
Properties
| Property | Type | Description | |
|---|---|---|---|
| data | BasesEntry[] | An ungrouped version of the data, with user-configured sort and limit applied. Where appropriate, views should support groupBy by using groupedData instead of this value. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| applyLimit(entries) | void | Truncates the given entries in place to the configured limit. | |
| applySort(entries) | void | Sorts the given entries in place according to the configured sort. | |
| getSummaryValue(queryController, entries, prop, summaryKey) | Value | Applies a summary function to a single property over a set of entries. |
Links to this page: