Fork me on GitHub
#xtdb
<
2022-11-17
>
rickmoynihan12:11:11

Is it not possible within xtdb to query for attributes themselves?

(xt/q (xt/db xtdb-node)
        '{:find [?p]
          :where [[?s ?p ?o]]})
This sort of thing seems to be prohibited by the query langauge specs

tatut12:11:56

you can get attribute-stats that will give you the available attributes fwiw

rickmoynihan12:11:23

Ok that’s good to know, but that’s database wide right? You can’t query for what attributes are available given other query constraints

tatut12:11:10

not to my knowledge

✔️ 1
tatut12:11:39

the stats are indeed for the whole database

✔️ 1