mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
fix(docs): correct formatting and variable names
This commit is contained in:
@@ -4,17 +4,17 @@
|
||||
|
||||
```typescript
|
||||
// DSL Query - Logseq's query language
|
||||
const results = await logseq.DB.q('[[page-name]]')
|
||||
const results0 = await logseq.DB.q('[[page-name]]')
|
||||
const todos = await logseq.DB.q('(task TODO DOING)')
|
||||
|
||||
// Datascript Query - Datalog syntax (more powerful)
|
||||
const results = await logseq.DB.datascriptQuery(`
|
||||
const results1 = await logseq.DB.datascriptQuery(`
|
||||
[:find (pull ?b [*])
|
||||
:where [?b :block/marker "TODO"]]
|
||||
`)
|
||||
|
||||
// Query with parameters
|
||||
const results = await logseq.DB.datascriptQuery(`
|
||||
const results2 = await logseq.DB.datascriptQuery(`
|
||||
[:find (pull ?b [*])
|
||||
:in $ ?name
|
||||
:where
|
||||
@@ -129,7 +129,6 @@ logseq.DB.onBlockChanged(uuid, (block, txData) => {
|
||||
| `:block/properties` | ✅ | ❌ | Map | Properties as key-value map |
|
||||
| `:block/tags` | ✅ | ✅ | Ref[] | Tag references |
|
||||
| `:block/link` | ❌ | ✅ | Ref | Link to class/tag in DB Graph |
|
||||
| `:block/tx-id` | ❌ | ✅ | Int | Transaction ID |
|
||||
| `:block/created-at` | ✅ | ❌ | Int | Creation timestamp (File Graph) |
|
||||
| `:block/updated-at` | ✅ | ❌ | Int | Update timestamp (File Graph) |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user