mongodb :: MongoMatch :: is_in
field
is in values
https://docs.mongodb.com/manual/reference/operator/query/in/
{ field: { $in: [<value1>, <value2>, ... <valueN> ] } }
$in
selects the documents where the value of a field equals any value
in the specified array.
# Match documents where `field` is in `values`
#
# https://docs.mongodb.com/manual/reference/operator/query/in/
#
# ~~~json
# { field: { $in: [<value1>, <value2>, ... <valueN> ] } }
# ~~~
#
# `$in` selects the documents where the value of a field equals any value
# in the specified array.
fun is_in(field: String, values: Array[nullable Serializable]): MongoMatch do
op("in", field, new JsonArray.from(values))
return self
end
lib/mongodb/queries.nit:203,2--216,4