set
tip
The set
operator is implied whenever a direct assignment is written. We recommend to use the implicit version. For example, use test = 42
instead of set test=42
.
A more detailed description of assignments can be found here.
Assigns a value to a field, creating it if necessary.
Description
Assigns a value to a field, creating it if necessary. If the field does not
exist, it is appended to the end. If the field name is a path such as
foo.bar.baz
, records for foo
and bar
will be created if they do not exist
yet.
Examples
Append a new field:
Update an existing field: