silverbullet/website/Live Queries.md

910 B
Raw Permalink Blame History

#level/intermediate

Live Queries are a Blocks that generates a (quasi) live view on various data sources, usually Objects, and renders their results inline via Live Preview either as a table or using Templates.

The syntax used is:

```query
page limit 3
```

Queries are written using SilverBullets Query Language.

Baking

A query block can be replaced with its current output by clicking the "Bake result" button in the top right corner. This will make it a regular part of page, which will not respond to changes in the data source anymore.

You can also use the {[Page: Bake live blocks]} command to do it in-place for every Blocks in this page which is rendered as Markdown (but not Live Template Widgets). You can undo the replacement with Ctrl+Z/Cmd+Z as usual, but if you want to keep your queries you should make a copy of the page first.