Method: Sequel::Postgres::JSONBOp#contain_any

Defined in:
lib/sequel/extensions/pg_json_ops.rb

#contain_any(other) ⇒ Object

Check if the receiver contains any of the keys in the given array:

jsonb_op.contain_any(:a) # (jsonb ?| a)


321
322
323
# File 'lib/sequel/extensions/pg_json_ops.rb', line 321

def contain_any(other)
  bool_op(CONTAIN_ANY, wrap_input_array(other))
end