Duaer

Expressions and code

Use data transformation methods in Duaer

In a Duaer expression, call a transformation method on a value, such as {{ $json.name.toTitleCase() }}. Methods are grouped by array, boolean, date, number, object, and string.

How to call a method in Duaer

Set the parameter to Expression, then put a dot and the method after the field or literal. The method changes the expression result. It does not rewrite the original item on the previous node unless you write the result into a new field.

When the work is only transformation, put the expressions in Edit Fields (Set). In the Code node, use JavaScript or Luxon’s own methods.

{{ $json.email.extractEmail() }}

The six groups

Questions

Where do you write a Duaer transformation method?

In a Duaer expression, after the value—for example {{ $json.email.extractEmail() }}. The parameter must be in Expression mode. These extensions are not in the Code node.

How are Duaer transformation methods grouped?

In Duaer, as arrays, booleans, dates, numbers, objects, and strings. Date math needs a Luxon DateTime—$now already is one; a string uses toDateTime().

In this section