The query looks like this, which is an excerpt from my config.edn
:
:default-queries
{:journals
[
{:title [:h4 "⏰ Today"]
:query [:find (pull ?block [*])
:in $ ?start ?next
:where
(or
[?block :block/scheduled ?d]
[?block :block/deadline ?d])
[(> ?d ?start)]
[(< ?d ?next)]]
:result-transform (fn [result]
(sort-by (fn [h]
(or (get h :block/scheduled) (get h :block/deadline))) result))
:inputs [:1d-before :1d-after]
:collapsed? false},
;; more queries here ...
]
}
I found this query on this thread: Why I no longer use LOGseq for taskmanagement (but somehow still do) - #4 by mlanza