Usage
Configuring the evaluation
All endpoints also accept a configuration (expression.Configuration
) object as the last argument. This object allows you to provide the following to the evaluator:
Sharing
- The sharing mode to use when querying data. Options areWITH
, orWITHOUT
sharing.Print AST
- Whether to print the AST (Abstract Syntax Tree) of the expression being evaluated. Useful for debugging.Custom Context
- A map of custom variables to be used in the expression. Anything provided through here will prefixed with an@
symbol and will be available globally in the expression. Notice this is different from using theLET
function to define variables, as those are only available within the expression they are defined in.