Query tags that starts with x?

Hi, I have tags like EMNLP2019, EMNLP2020 etc. And I would like to see all such tags that start with EMNLP.

What would be the query? Sorry I am still new to the query.


1 Like

Have a look here:

You can replace starts-with with includes or ends-with.

{:query [:find (pull ?b [*])
         :in $ ?s
         [?b :block/original-name ?n]
         [(clojure.string/starts-with? ?n ?s)]]
 :inputs [ "task.myName." ]
1 Like