Core
Framework v2.x
2

exists() #

Returns a boolean telling whether filters exist for an index-collection pair.

Arguments #

exists(index: string, collection: string): boolean;

ArgumentsTypeDescription
index
string
Index name
collection
string
Collection name

Return #

The exists function returns a boolean telling whether at least one filter exists in the provided index-collection pair.