Returns a function that performs a comparison based on the provided comparator.
The comparator to base the comparison function on.
A function that takes two arguments and returns a boolean based on the comparison.
Returns a function that performs an operation based on the provided operator.
The operator to base the operation function on.
A function that takes two boolean arguments and returns a boolean based on the operation.
Merges two filters into one, based on the specified merge type.
The default filter function.
The generated filter function.
The type of merge to perform. Can be 'and', 'or', or 'replace'. Default is 'and'.
A function that takes a Document
as an argument and returns a boolean based on the merged filters, or undefined
if both filters are empty.
Visits the comparison part of a structured query and translates it into a functional filter.
The comparison part of a structured query.
A function that takes a Document
as an argument and returns a boolean based on the comparison.
Visits the operation part of a structured query and translates it into a functional filter.
The operation part of a structured query.
A function that takes a Document
as an argument and returns a boolean based on the operation.
Visits a structured query and translates it into a functional filter.
The structured query to translate.
An object containing a filter
property, which is a function that takes a Document
as an argument and returns a boolean based on the structured query.
Generated using TypeDoc
A class that extends
BaseTranslator
to translate structured queries into functional filters.Example