Datalog: Find entity pairs that have an exact match on a collection

Viewed 9

IF I have the following set of entities in my xtdb/datomic database

{:name "1" :likes [:a :b :c]}
{:name "2" :likes [:a :b]}
{:name "3" :likes [:a :b :c]}

I want to write a query that returns me #{[1,2]}

There was a similar question but in that case it doesn't care about "exact" match

0 Answers
Related