$all

The `$all` operator selects the documents where the value of a field is an array that contains all the specified elements.

Syntax

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

Parameters

fieldstringrequired

The field to query.

<value1>, <value2>stringrequired

The values that must all be present in the array field.