cannblw / knex-paginator

Simple paginator for Knex. It adds the .paginate() function to Knex's query builder.
15 stars 10 forks source link

Total field diffier amount when i groupby #7

Closed aepel closed 5 years ago

aepel commented 5 years ago

Hi, thanks for this excellent plugin. I'm having difficulties when I have a query with the groupby statement. If the query returns a list without groupby it works very well. If I add the group by statement, the total returns the number 2, which has nothing to do with the number of results that the query without groupby returns to me. Could you help me?

aepel commented 5 years ago

My fault sorry for the inconvenience

cannblw commented 5 years ago

Glad you got it sorted!