test()
#
Tests data and returns the matching filter identifiers.
Arguments #
test(index: string, collection: string, data: any, documentId?: string): string[];
Arguments | Type | Description |
---|---|---|
index | string | Index name |
collection | string | Collection name |
data | any | Data to test |
documentId | string | Document unique identifier |
Return #
The test
function returns an array of strings, which is the exhaustive list of matching filter identifiers.
Edit this page on Github(opens new window)