Task created today with deadline or scheduled

This query filters tasks created that same day, from any page. If I also want it to filter tasks created today with a due date, what should I add?

#+BEGIN_QUERY
{:title “tareas creadas hoy”
:query [:find (pull ?b [*])
:in $ ?start ?end
:where
[?b :block/created-at ?created-at]
[(>= ?created-at ?start)]
[(< ?created-at ?end)]
[?b :block/marker “TODO”]]
:inputs [:today-start :today-end]
}
#+END_QUERY

  • Does your query work so far?
    • Have you enabled :feature/enable-block-timestamps? in config.edn?
      • Are you aware that this setup is fragile?
  • Otherwise, add (e.g. in between ]]) something like the following:
    (or
      [?b :block/deadline]
      [?b :block/scheduled]
    )
    
    • However, I’m not sure of what you are trying to accomplish.
      • What do you want the extra filter for?
        • to limit the current results
        • to add to the current results