Data Router ยท console.warn
an unnest needs a `path` (the dotted array f...
Printed by Data Router, prefixed [lattice], since 1.84.0.
Warnings reference › data-router:unnest-no-path
- Identifier
data-router:unnest-no-path- Raised by
- Data Router
- Since
- 1.84.0
What happened
An unnest spec was declared without a path - the dotted array field to expand. Without it there is nothing to read, so the spec is dropped and the source's rows pass through as plain fan-in rather than the router throwing.
The fix
Set path to the array field on the parent row, e.g. 'addresses' or 'profile.addresses'.
The smallest fix
addSource('company', { unnest: [{ path: 'addresses', as: 'address' }] })
Reference
Covered in full at the API reference.