SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

atom.setNestedDataField

BETA

Short name: setNestedDataField

Version: 1.0.0

Sets a nested FieldEntry under atom.data using a string[] path. Missing intermediate object entries are created automatically.

Back to primitive library

Inputs

KeyTypeRequiredDescription
atomIdobjectIdtrueAtom to mutate.
patharraytrueNested data path as string[] (for example ["profile", "name", "first"]). Dotted strings are not supported.
valueanytrueValue to store at the leaf FieldEntry.
valueTypestringfalseOptional AtomFieldInputType metadata. One of: string, number, integer, boolean, date, instant, linkedAtom, linkedAtomArray, array, object, markdown, url.

Outputs

KeyTypeRequiredDescription
actionstringfalse"appended" when creating a new leaf or "updated" when replacing an existing leaf.
atomobjectfalseUpdated atom summary: { id, version, lexemeIds, data, isPublic }.
patharrayfalseNormalized path that was written.
previousValueanyfalsePrior leaf value when action is updated; omitted for appended.