test() #
Deprecated since 2.14.0
Tests data and returns the matching filter identifiers.
Arguments #
test(index: string, collection: string, data: JSONObject, id?: string): string[];| Arguments | Type | Description |
|---|---|---|
index | string | Index name |
collection | string | Collection name |
data | any | Data to test |
id | string | Optional document unique identifier |
Return #
The test function returns an array of strings, which is the exhaustive list of matching filter identifiers.