create
Description
The create command defines a new key and assigns it a value derived from an expression. It is one of the most flexible commands in DataPrime, allowing you to add new fields, populate missing data, or enrich existing structures without overwriting parent keys.
In practice, create acts like a safe write operation for structured data.
Note
Key creation is granular, meaning that parent keys in the path are not overwritten. This allows you to safely add fields within existing objects, even in nested log structures.
Syntax
(a|add|c|create) <keypath> from <expression>
Last updated on