An API for
QueryPart.$replace(Replacer)
query part transformations.
This API is EXPERIMENTAL. Use at your own risk.
See replacer()
for the contract that must be obeyed by the
replacer()
function.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Replacer
Convenience method to create aReplacer
with areplacer()
.static Replacer
recurse()
An optional recursion condition to prevent entering a specific subtree, e.g.replacer()
A callback that is invoked on all elements of theQueryPart
expression tree.
-
Method Details
-
of
Convenience method to create aReplacer
with areplacer()
. -
of
-
recurse
An optional recursion condition to prevent entering a specific subtree, e.g. when it is undesired to enter any subqueries. -
replacer
A callback that is invoked on all elements of theQueryPart
expression tree.Any such callback must obey the following contract:
-