AddOp
Builder add operation for shapes, things, assertions, and collections.
Properties
Section titled “Properties”operation
Section titled “operation”
readonlyoperation:"add"
Operation discriminator. Always add.
readonlyname:string
Target name. Use Shape/localName for things and assertions; use the plain shape name for shapes.
readonlyoptionalkind?:string
Optional kind override: shape, thing, assertion, or collection.
about?
Section titled “about?”
readonlyoptionalabout?:string|CollectionAbout
Assertion target wref or inline collection descriptor. Presence of about makes the add an assertion unless kind overrides it.
readonlyoptionaltype?:string
Collection type. Used only for collection adds.
members?
Section titled “members?”
readonlyoptionalmembers?:string[]
Collection member wrefs. Used only for collection adds.
shapeWref?
Section titled “shapeWref?”
readonlyoptionalshapeWref?:string
Optional shape wref used by local validation.
aboutWref?
Section titled “aboutWref?”
readonlyoptionalaboutWref?:string
Deprecated spelling for about; retained for compatibility.
readonlyoptionaldata?:unknown
Shape-validated data payload for shape, thing, or assertion adds.
skipExisting?
Section titled “skipExisting?”
readonlyoptionalskipExisting?:boolean
When true, an existing target returns noop instead of failing.
Hit a problem or have a question? Get in touch.