diff --git a/packages/core/src/gather.js b/packages/core/src/gather.js index ffba7d2..2b88781 100644 --- a/packages/core/src/gather.js +++ b/packages/core/src/gather.js @@ -20,7 +20,7 @@ export const gatherWithLatus = (context) => (latus) => ( })) ); -export default (latus, type, idAttribute, typeAttribute, check = () => {}) => { +export default (latus, type, idAttribute = 'id', typeAttribute = 'type', check = () => {}) => { const gathered = latus.invokeReduce(type); check(gathered, type); const composed = latus.invokeComposed(`${type}.decorate`, gathered);