Trying to get all blocks with all markers(TODO, etc) that have a specific tag

I figure I’m missing something obvious like a bracket or something but I can’t find it.
I’m trying to capture all blocks like this one:
block

My query looks like this:
query

Thanks for putting another set of eyes on this,
~ Sinnah

Welcome.

  • tags are not considered properties, but references
    • :block/tags is for property tags:: of pages, because pages are special
  • references may work like this:
    [?b :block/refs ?refs]
    [?refs :block/name "food/meal-prep/groceries"]
    
1 Like

Thanks so much! I couldn’t figure that out because I didn’t realize the “tags::” and the “#hashtags” were considered different things. It all makes so much sense now. :slight_smile: