Interactive demo · Changes are private and temporary. Create your workspace
Loading home
Skip to content
Docs
  1. Docs
  2. /
  3. Notes & Library

Lattuce tutorial · Notes & Library

Note queries

Query Notes with Dataview-lite fences to build live lists, tables, tasks, and filtered research views.

On this page

  1. Directives
  2. Build a query safely
  3. Examples

Vault notes can embed live query fences (Dataview-lite). Use a fenced block:

Queries turn note properties into a repeatable index. Start with one narrow question—such as “which daily notes still have tasks?”—and add filters one at a time. A query reads note metadata; it does not create or edit notes.

```dataview
LIST
WHERE kind = daily
LIMIT 10
```

Languages dataview and query both work. Slash commands /query and /dataview insert a starter fence.

Directives

DirectiveEffect
TABLE col1, col2Tabular results
LISTBullet list of notes
TASKCheckbox lines from matching notes
WHERE key = valueProperty / tag / kind filters (AND supported)
FROM #tagTag filter
FROM kind = dailyKind filter
FROM folder = Projects or FROM [[Projects]]Folder / namespace prefix
BETWEEN 2026-01-01 2026-01-31Daily-note date range
LIMIT nCap results (max 100)

Build a query safely

  1. Insert a starter block with /query or /dataview.
  2. Choose LIST, TABLE, or TASK based on the result you need.
  3. Add one FROM scope and one WHERE condition.
  4. Add a date range or LIMIT before widening the query.
  5. Preview the results, then give the block a nearby heading that explains its purpose.

Use stable properties such as kind, folder, and tags instead of relying on prose inside a note. If a result looks wrong, open the note and inspect its frontmatter or task syntax before changing the query.

Examples

Open tasks this month:

```dataview
TASK
FROM kind = daily
BETWEEN 2026-08-01 2026-08-31
LIMIT 50
```

Advanced Logseq Datalog (:find / :where) is intentionally out of scope. Use Notes filters and separate query blocks when you need a simpler, portable view.

PreviousNotes vault panesNextDaily journals

Continue learning

  • Notes workflows
  • Block references
  • Link two notes together

Browse more in Notes & Library or return to all tutorials.

On this page

  1. Directives
  2. Build a query safely
  3. Examples
← All tutorials
TermsPrivacyCookiesRefundsFAQContact[email protected]

© Lattuce