Fork me on GitHub
#datomic
<
2022-04-20
>
favila03:04:48

yes. (also entity maps)

favila03:04:12

in datalog, you just reverse the e and v bindings

👍 1
Drew Verlee03:04:30

yea. that makes complete sense and explains why I was very confused the first time i encountered the idea. I was trying to justify it in pure datalog...

Drew Verlee03:04:44

thank you for the explanation!

uwo14:04:02

If you're on-prem you can call a reverse-lookup keyword on the result of d/entity as well

👀 1
augustl12:04:53

I believe reverse lookups work for datalog queries as well

favila12:04:44

@U0MKRS1FX you cannot do this: [?e :foo/_bar ?v]. You must do this [?v :foo/bar ?e]

augustl12:04:24

brainfart confirmed, thought I did that in my code, but I don't 🙂