I would like get the list of the property keys available in my graph. Similarly, to get the list of values of a particular property.
Thanks in advance!
I would like get the list of the property keys available in my graph. Similarly, to get the list of values of a particular property.
Thanks in advance!
I don’t know if there is a better way, but following query works for me and lists all property keys:
#+BEGIN_QUERY
{
:query [
:find ?prop
:where
[?b :block/properties ?prop]
]
:view(fn [rows] (for
[prop (sort (distinct (flatten (map keys rows))))]
[:div (clojure.string/replace-first (str prop) ":" "") ]))
}
#+END_QUERY