How to find documents with exactly the same array entries as in a query
问题 I have documents in a collection, looking like this: [ { userId: 1, itemsIds: [399957190, 366369952], hash: '85e765840b1cd3c413404cdf6b8fb2a4' }, { userId: 2, itemsIds: [349551151, 366369952], hash: 'a28fa334515749b1b13fcd2183edb8de' }, { userId: 3, itemsIds: [399957190, 366369952], hash: '85e765840b1cd3c413404cdf6b8fb2a4' } ] These are users, which have favorite items in their lists. I want one user's list to others and find if they are equal. If they are, I want to mark them as a kind of a