Data Router ยท console.warn
a spread join needs a `name` (the attribute-...
Printed by Data Router, prefixed [lattice], since 1.84.0.
Warnings reference › data-router:spread-no-name
- Identifier
data-router:spread-no-name- Raised by
- Data Router
- Since
- 1.84.0
What happened
A SPREAD join was declared without a name reader - the field or fn(row) that reads each attribute row's name. Without a name there is nothing to write onto the parent, so the join is dropped and the parent rows pass through unenriched rather than the router throwing.
The fix
Set spread.name to the child field holding the attribute name, or a fn(row) that reads it.
The smallest fix
join: { from: 'companyAttr', foreignKey: 'companyId', spread: { name: 'attribute', value: 'value', prefix: 'cf_' } }
Reference
Covered in full at the API reference.