Fork me on GitHub
#xtdb
<
2023-06-09
>
Amos08:06:17

Hi, I try to find all attributes by using datalog.

[:find ?attr
 :where 
 [?p :person/name]
 [?p ?attr]]
By looking at the original form, I change to the xtdb query form:
{:find [?attr]
:where [[?p :person/name]
        [?p ?attr]]}
However, it shows the error, has anyone occurs the similar issue when try to query attribute?

jarohen08:06:55

hey there @U0577BSF2CC - I'm afraid querying for attributes like this isn't supported in XT. if you're just looking for a list of attributes in the whole database, (xt/attribute-stats node) may be useful to you?

2
Amos12:06:50

Thank you for your information.

Vincent23:06:07

Pull syntax is good for grabbing all that