Skip to content

Return Page Count and Current Page #4

@tutley

Description

@tutley

There may already be a way to deduce this from the cursor, I'm not sure, but it would be really nice if the minquery.All function would also return some meta-data about the result set such as the total number of pages matching the query criteria along with the current page that is represented in the returned slice of results. This can be accomplished currently by running a second mgo.Find to simply count the data set, and to pass the current page number back and forth with the client, but that seems "ugly". Maybe there's already a better way to do that, I don't know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions