datahike

oλv 2024-05-22T13:05:22.621519Z

I’d like to read out all the attributes out an entity. I tried the entity fn, but it threw “lookup ref attribute should be marked as :db/unique”. I’m using schema-on-read.

whilo 2024-05-22T18:50:21.858359Z

Hey @post972. This happened because you used a lookup ref, it is not specific for the entity fn. Can you send you code?

oλv 2024-05-22T13:05:53.005829Z

How can I read all attributes of an entity?

whilo 2024-05-22T18:51:11.201659Z

You could use the pull API, e.g. (d/pull eid [:*]) .

👍 1
oλv 2024-05-25T14:48:13.620829Z

Thanks!