-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Labels
Description
The following bit of code added by pull request #55 does not work for Sequelize v3 BelongsToMany associations with tedious when including both limit and offset:
dataloader-sequelize/src/index.js
Line 136 in 13f322c
| const limit = findOptions.offset && findOptions.offset > 0 ? [findOptions.limit, findOptions.offset] : findOptions.limit; |
The query that is built with a limit of 10 and an offset of 2 will contain the following:
-- rest of qurey
OFFSET 0 ROWS FETCH NEXT 10,2 ROWS ONLYInstead of the expected:
OFFSET 2 ROWS FETCH NEXT 10 ROWS ONLYAny thoughts regarding resolution?
Thanks