Parses the input with the project's DQL frontend (see src/dql.ts) and
executes against the live vault index. Supports a subset of Dataview's
syntax: TABLE / LIST projections, WHERE clauses, FROM "folder" /
FROM #tag sources, SORT, LIMIT, GROUP BY. No formula evaluator —
pure field projection + boolean filters (formula evaluator deferred per
v3.6.0 non-goals).
{ query, rows } — rows is an array of objects keyed by the
projected fields.
Throws
If the DQL fails to parse or references an unknown source.
Example
constr=awaitdataviewQuery(vault, { query: 'TABLE status, mtime FROM "Posts" WHERE status = "draft" SORT mtime DESC' }); for (constrowof r.rows) console.log(row);
Run a Dataview-style DQL query against the vault.
Parses the input with the project's DQL frontend (see
src/dql.ts) and executes against the live vault index. Supports a subset of Dataview's syntax:TABLE/LISTprojections,WHEREclauses,FROM "folder"/FROM #tagsources,SORT,LIMIT,GROUP BY. No formula evaluator — pure field projection + boolean filters (formula evaluator deferred per v3.6.0 non-goals).