I am trying to figure out how to do "contains all including duplicate elements" in a postgres jsonb array.
I am currently using @> which is returning true when the duplicate elements aren't in the original array.
For example, I am looking for an operator where this query returns true:
select '[1, 2, 3]'::jsonb @> '[1, 2]';
But this query returns false
select '[1, 2, 3]'::jsonb @> '[1, 1]';
@> returns true for both.