Matt's Roof Garden

Powered by 🌱Roam Garden

datalog Query

Show all blocks that contain a word or phrase (partially working)

:q [:find ?s ?r
      [?e :block/string ?s]
      [(re-matches #"(?i)\b.*(queries).*" ?s)]
      [?e :block/uid ?r]      

Referenced in

Intro to datalog for Roam Research

Why am I doing this? I am very interested in the different J5NUMQape that can be done from within Roam Research. These queries allow a massive amount of flexibility to the questions we can ask our own database.