Match documents where field is not in values

https://docs.mongodb.com/manual/reference/operator/query/nin/

{ field: { $nin: [<value1>, <value2>, ... <valueN> ] } }

$nin selects the documents where:

  • the field value is not in the specified array or
  • the field does not exist.

Property definitions

mongodb $ MongoMatch :: is_nin
	# Match documents where `field` is not in `values`
	#
	# https://docs.mongodb.com/manual/reference/operator/query/nin/
	#
	# ~~~json
	# { field: { $nin: [<value1>, <value2>, ... <valueN> ] } }
	# ~~~
	#
	# `$nin` selects the documents where:
	# * the field value is not in the specified array or
	# * the field does not exist.
	fun is_nin(field: String, values: Array[nullable Serializable]): MongoMatch do
		op("nin", field, new JsonArray.from(values))
		return self
	end
lib/mongodb/queries.nit:218,2--232,4