Lattice Grid Buy a licence

Data Router ยท console.warn

an unnest needs an `as` (the child row type)...

Printed by Data Router, prefixed [lattice], since 1.84.0.

Warnings reference › data-router:unnest-no-as

Identifier
data-router:unnest-no-as
Raised by
Data Router
Since
1.84.0

What happened

An unnest spec was declared without an as - the child row type (and the source id the children route and join under). Without it the children have no type to route under, so the spec is dropped and the source's rows pass through as plain fan-in rather than the router throwing.

The fix

Set as to the child type, e.g. 'address', and attach a route to that value.

The smallest fix

addSource('company', { unnest: [{ path: 'addresses', as: 'address' }] })

Reference

Covered in full at the API reference.