I did my first query:
{{query (and [[Book Notes/Self Compassion]] (not [[Book Notes/Self Compassion/Exercises]] ))}}
But unfortunately it only shows the parent block with the actual tag and not the contents of those blocks:
How do i fix this?
I did my first query:
{{query (and [[Book Notes/Self Compassion]] (not [[Book Notes/Self Compassion/Exercises]] ))}}
But unfortunately it only shows the parent block with the actual tag and not the contents of those blocks:
How do i fix this?
This appears to be a bug honestly.
You can use this advanced query as a workaround:
#+BEGIN_QUERY
{:title "Self Compassion Book Notes"
:query [:find (pull ?b [*])
:where
[?tag :block/name "book notes/self compassion"] ;always lower-case
[?exercise :block/name "book notes/self compassion/exercises"]
[?b :block/refs ?tag]
(not [?b :block/refs ?exercise])
]
}
#+END_QUERY