Data Router ยท console.warn
a collect join's `select` names "{name}", wh...
Printed by Data Router, prefixed [lattice], since 1.85.0.
Warnings reference › data-router:collect-select-field:*
- Identifier
data-router:collect-select-field:*- Raised by
- Data Router
- Since
- 1.85.0
What happened
A collect join with a select list, rename map or field name reads each named field off every collected row. This one is absent from the row (it is not a field of the from-source after its own joins), so the collected value is undefined. It is almost always a misspelt name.
The fix
Name a field the from-source's rows carry (including fields added by that source's own joins), or use a select function.
The smallest fix
join: { from: 'address', foreignKey: 'companyId', many: true, as: 'addresses', select: ['street', 'city'] }
Reference
Covered in full at the API reference.