mora icon indicating copy to clipboard operation
mora copied to clipboard

len(data)=0 when I set skip=1 and limit=1

Open yuqitao opened this issue 6 years ago • 2 comments

curl 'http://****?skip=1&limit=1'

response : { "success": true, "data": [] }

change limit =2 , the resoponse is ok .

looks like : limit=1, skip >= 1 , empty limit = 1, skip = 0 , ok limit > 1, ok

I find len(iter.docData)=0 and iter.err = "not found"

yuqitao avatar Dec 06 '18 07:12 yuqitao

thank you for reporting this. I haven't looked at this app for a while. Could you make a fix for it?

emicklei avatar Dec 06 '18 21:12 emicklei

https://github.com/globalsign/mgo/issues/267

he encountered the same problem.

yuqitao avatar Dec 07 '18 05:12 yuqitao