Since you said start with, one way to do this below. You can replace starts-with
with includes
or ends-with
.
#+BEGIN_QUERY
{:query [:find (pull ?b [*])
:in $ ?s
:where
[?b :block/original-name ?n]
[(clojure.string/starts-with? ?n ?s)]]
:inputs [ "task.myName." ]
}
#+END_QUERY
If you want to use wildcards, you need to use regex, check out Bailey Jennings’ search query here. If you need further assistance, just tell.