Skip to content

Commit

Permalink
adding sql lite for the counts (mickhansen#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanb authored and mickhansen committed Feb 25, 2019
1 parent c553924 commit 3206b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/relay.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export function createConnectionResolver({
model.sequelize.literal('COUNT(*) OVER()'),
'full_count'
]);
} else if (model.sequelize.dialect.name === 'mssql') {
} else if (model.sequelize.dialect.name === 'mssql' || model.sequelize.dialect.name === 'sqlite') {
options.attributes.push([
model.sequelize.literal('COUNT(1) OVER()'),
'full_count'
Expand Down

0 comments on commit 3206b0e

Please sign in to comment.