Core
Framework v2.x
2

test() #

Tests data and returns the matching filter identifiers.

Arguments #

test(index: string, collection: string, data: any, documentId?: string): string[];

ArgumentsTypeDescription
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.