compile a Source string into a filter according to the EnabledPolicies provided.
The EnabledPolicies can make use of the builtin availableProperties exported by using the key name instead of a Policy definition.
The options and policies passed in the constructor are merged with the defaults to allow additional options and AvailablePolicies to be specified.
toTerm is an alternative to direct compilation.
Instead of the compiled result a Term is produced that can be compiled later.
Generated using TypeDoc
MongoDBFilterCompiler provides a compiler for converting a valid search-filters string into a valid mongodb filter.
These filters are intended to be used with the mongodb package and may not work with more opinionated libraries.