Skip to content

db.view() does not return total_rows count #325

@squirrelpiles

Description

@squirrelpiles

If I call a view in couchDB, it returns something like:
{"total_rows":14,"offset":0,"rows":[...] }

The "total_rows" is the count of how many total possible rows the view contains. The size of rows[] is the number of rows ACTUALLY returned based on limit (if specified) and skip values.

dw.view() does not seem to return "total_rows" or "offset". How can I know how many total rows are in the view so i can page?

Can you return a result that looks like: {"total_rows":14,"offset":0,"rows":[...] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions