From a3cd0faacca201790aefdd1d6895703a29585906 Mon Sep 17 00:00:00 2001 From: "Sinan Sonmez (Chaush)" Date: Sat, 30 Jul 2022 11:11:24 +0000 Subject: [PATCH] builtin data sources --- website/🔌 Query.md | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/website/🔌 Query.md b/website/🔌 Query.md index 16a2945..026b244 100644 --- a/website/🔌 Query.md +++ b/website/🔌 Query.md @@ -5,10 +5,10 @@ repo: https://github.com/silverbulletmd/silverbullet author: Silver Bullet Authors ``` -### What? +### 1. What? The query plug is a built-in plug implementing the `` mechanism. You can use query plug to automatically receive information from your notes. -### Syntax +### 2. Syntax 1. start with: `` 2. end with: `` 3. write your query: replace `[QUERY GOES HERE]` with any query you want using options below @@ -20,10 +20,32 @@ The query plug is a built-in plug implementing the `` mechanism. * `render` 5. If you are a developer or have a technical knowledge to read a code and would like to know more about syntax please check out [query grammar](https://github.com/silverbulletmd/silverbullet/blob/main/packages/plugs/query/query.grammar) -### How to run a query +### 3. How to run a query? After writing the query, there are two options * Open the **command palette** and run **Materialized Queries: Update** * Use shortcut: for windows **Alt-q** and for mac **Option-q** * Go to another page and come back to the page where query is located -After using one of the options, the data will be displayed. \ No newline at end of file +After using one of the options, the data will be displayed. + +### 4. Data sources +Available data sources can be categorized as +1. Builtin data sources +2. Data that can be inserted by users +3. Plug’s data sourcer + +Best part about data sources: there is an auto completion 🎉. Start writing ` + + + +