contains

source

contains<R, F extends string | number | symbol>(field: F, value: ElementType<R[F]>): ScalarPredicatesource

Returns a predicate that evaluates to true if the field is a collection that contains the value of the argument. Works for array, map, set, and string fields.