Collection.prototype.query()

Run query on all files in the collection, return the result.

Syntax

collection.query(selector string) Collection

Parameters

selector string

Selector for matching files. See selectors for more details.

Description

Run query on all files in the collection, append the matches to a resulting collection. The resulting collection may contain duplicates.

Examples

Empty collection.

Typical example.