Get difference between 2 string arrays

Hi All,
I've a documents contains an array fields names "my_tag" and "unique_id". I'd like to get differences between 2 unique_ids with values like { "uid":1, my_tag: ["va1","val2", "val10"]} and { "uid":2, my_tag: ["va1","val20"]} with result
udi:1 diff uid:2 = ["val2", "val10"]
udi:2 diff uid:1 = ["val20"]
like set type in python

what is the way to do the difference


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.