Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why my response total is 8 but docs is a array of nothing ? #143

Open
yuyuabc1 opened this issue Jun 14, 2018 · 5 comments
Open

why my response total is 8 but docs is a array of nothing ? #143

yuyuabc1 opened this issue Jun 14, 2018 · 5 comments

Comments

@yuyuabc1
Copy link

yuyuabc1 commented Jun 14, 2018

why my response total is 8 but docs is a array of nothing ?
var order = await Model.paginate({}, { page: 1, limit: 10 })
then my order is
{
"docs": [],
"total": 8,
"limit": "",
"page": "",
"pages": null
}

@nishadmenezes
Copy link

Facing the exact same issue when matching documents using regular expressions.

@wassgha
Copy link

wassgha commented Jul 15, 2018

Same

@helderabreu
Copy link

Same issue here. My result is the following:
{ "docs": [], "total": 2 }

@ashadnasim52
Copy link

same issue with me

image

any solution

@ashadnasim52
Copy link

@yuyuabc1 @nishadmenezes @wassgha @helderabreu

I had solved my issue, the thing I am doing wrong is the querying page number 5 but it only contains page one.

It is a very silly mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants