Golang Mongodb Pagination for official mongodb/mongo-go-driver package which supports both normal queries and Aggregation pipelines with all information like Total records, Page, Per Page, Previous, Next, Total Page and query results.
MongoDB driver updated to v1.7.4
Full Changelog: https://github.com/gobeam/mongo-go-pagination/compare/v0.0.7...v0.0.8
In aggregate facet search now if sort exists it is applied before limiting which is the default behavior. And official mongo driver v1.3.1 is upgraded to v1.7.1.
Full Changelog: https://github.com/gobeam/mongo-go-pagination/compare/v0.0.6...v0.0.7
Get skip logic error due to pull request 11 resolved, and new example with api server added for more clarity.