- b1
prop1:: [[hello]]
prop2:: [[world]] [[page]]
- b2
- b3 [[page]] - don't include
Is there a way to query all blocks that have at least one property with value [[page]]
?
Expected result: → b1
There is has-property
, but it is for property keys.
What I need is: (has property-value ?b ?prop)
.
Or in other words: Can we use clojure.core
functions like vals
to get all values from the properties as set or similar? I have seen someone has used clojure.string/includes?
in the :where
clause, but core
functions triggered error in console for me:
"Unknown predicate 'clojure.core/keys in …
Being Clojure newbie, have I overseen somethin obvious?