mirror of https://github.com/logseq/logseq
fix: update :query/result-transforms to work with db graphs
since they are the future. Leave example disabled by default as it's not important to have :sort-by-priority enabled by default and working for both file and db graphsexperiment/tanstack-table
parent
575558e169
commit
16cfb76c9b
|
@ -199,9 +199,10 @@
|
|||
|
||||
;; Advanced queries `:result-transform` function.
|
||||
;; Transform the query result before displaying it.
|
||||
:query/result-transforms
|
||||
{:sort-by-priority
|
||||
(fn [result] (sort-by (fn [h] (get h :block/priority "Z")) result))}
|
||||
;; Example usage for DB graphs:
|
||||
;; :query/result-transforms
|
||||
;; {:sort-by-priority
|
||||
;; (fn [result] (sort-by (fn [h] (get h :logseq.task/priority "Z")) result))}
|
||||
|
||||
;; Queries will be displayed at the bottom of today's journal page.
|
||||
;; Example usage:
|
||||
|
|
Loading…
Reference in New Issue