UpsertChildByKeyOptions
Describes the child for BaseWriteItem.upsertChildByKey.
Extends
Section titled “Extends”Properties
Section titled “Properties”initialState?
Section titled “initialState?”
readonlyoptionalinitialState?:string
The initial state for a newly created child, which must be marked initial on the Template. An existing child keeps its state.
Default Value
Section titled “Default Value”The Template's default stateInherited from
Section titled “Inherited from”UpsertChildByKeyOptionsBase.initialState
readonlyoptionalkey?:string
The child’s key relative to the parent. The call is rejected when the key is missing or invalid.
onConflict?
Section titled “onConflict?”
readonlyoptionalonConflict?:"merge"|"ignore"
The conflict policy: 'merge' writes the supplied Properties to the existing child, 'ignore' leaves it
untouched. Either way the existing child is returned.
Default Value
Section titled “Default Value”'merge'
Inherited from
Section titled “Inherited from”properties?
Section titled “properties?”
readonlyoptionalproperties?:Record<string,any>
Property values keyed by Property key, stored on a new child or written to an existing one under 'merge'.
Default Value
Section titled “Default Value”{}

