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 are WITH, or WITHOUT 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 the LET function to define variables, as those are only available within the expression they are defined in.
Previous
Accessing Contextual Data
Next
Lists