Extends
| id The block's permanent identity inside its document. | inherited | |||||||||||||||||||
| revision Output only: CID of the last Change that modified this block. | optional · inherited | |||||||||||||||||||
| type Block type tag, always `Query`. | Query | optional | ||||||||||||||||||
| attributes The stored query and how its results are shown. | ||||||||||||||||||||
| ||||||||||||||||||||
A query block is a live listing. The author stores a query in place of a copied list of pages, and every reader sees the current result. Attributes: query (required; the spaces and paths to include, the sort and the limit), style (a query style: Card, List or Table), columnCount (card columns, default 3), banner (show the first result as a banner), table (a table config for the table view), and the parent-layout pair. A folder page is usually one query block over its own children. See Blocks and the query grammar.
See also
query: the query object this block stores.
query/style and query/table-config: how results are shown.
Seed API: QueryBlock runs a query block.
Query grammar: filtering by attributes.
Blocks: the block model.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime