A shape field: shapeField('shipTo', Address), or polymorphic:
shapeField('payment', { card: Card, bank: Bank }, { discriminator: '$type' }).
The record gives the shape instance. A shape writes the whole top-level raw value
(ADR 0005), so it never uses the nested setAttr path.
A shape field:
shapeField('shipTo', Address), or polymorphic:shapeField('payment', { card: Card, bank: Bank }, { discriminator: '$type' }). The record gives the shape instance. A shape writes the whole top-level raw value (ADR 0005), so it never uses the nestedsetAttrpath.