Welcome! Please see the About page for a little more info on how this works.

0 votes
in Peer API by

I tried looking here but it doesn't seem to be documented https://docs.datomic.com/on-prem/clojure/index.html

I was able to get the io-stats from query, thanks to an example on this page: https://docs.datomic.com/on-prem/api/io-stats.html#query

1 Answer

+1 vote
by

Hi @Dimitar!

Here is an example pull using io-stats:

(d/pull db {:selector '[:attr/foo] :eid 123 :io-context :your/io-context})

Note that the eid can be a lookup-ref instead of an actual eid.

by
Thank you this solves my issue!
by
Just a note the above is for the client api, for the peer api it is (d/pull db '[:attr/foo] 123 :io-context :your/io-context)
...