Skip to content

Commit e7003f2

Browse files
authored
Merge pull request #8 from skoch-tf/patch-1
fix required aggregation column
2 parents e994f75 + 3a651a1 commit e7003f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolvers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function resolvers(
8080
] = association.target.options.gqMiddleware.queryCount(
8181
(parent, args, context, info) => {
8282
return parent['get' + associationFieldNameType]({
83-
attributes: [[sequelize.fn('count'), 'cnt']],
83+
attributes: [[sequelize.fn('count', '*'), 'cnt']],
8484
...generateFindArgs(sequelize, args),
8585
}).then(result => result[0].get('cnt'));
8686
}

0 commit comments

Comments
 (0)