Query for all tasks Scheduled or deadlined for today. Can anyone help with this?

There’s a lot of task related queries here:

Though I don’t think this one specifically.

So here’s your specific one:

#+BEGIN_QUERY
{:title [:b "Today's tasks"]
 :query [:find (pull ?b [*])
  :in $ ?day
  :where
   [?b :block/marker ?m]
   [(contains? #{"TODO" "DOING"} ?m)]
   (or
     [?b :block/scheduled ?day]
     [?b :block/deadline ?day]
   )
 ]
 :inputs [:today]
}
#+END_QUERY
2 Likes