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

65 Views Asked by At

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 pairs of entites that have exact match on :likes attribute. In this case #{[1,3]}

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

0

There are 0 best solutions below