where method

Query where(
  1. Filter filter
)

Creates and returns a new Query{@link Query} with the additional filter that documents should satisfy the relation constraint provided. Documents must contain the field specified in the filter.

This function returns a new (immutable) instance of the Query (rather than modify the existing instance) to impose the filter.

@param {Filter} filter A filter to apply to the Query. @returns {Query} The created Query.

Implementation

external Query where(Filter filter);