Core
Framework v2.x
2

test() #

Tests data and returns the matching filter identifiers.

Arguments #

Copied to clipboard!
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.