Function jsonb_exists_all

Source
fn jsonb_exists_all(left: JsonbRef<'_>, keys: ListRef<'_>) -> bool
Expand description

Do all of the strings in the text array exist as top-level keys or array elements?

Examples:

query B
select '{"a":1, "b":2, "c":3}'::jsonb ?& array['a', 'b'];
----
t

query B
select '["a", "b", "c"]'::jsonb ?& array['a', 'b'];
----
t

query B
select '"b"'::jsonb ?& array['b'];
----
t