I am new to mongodb, so please bear with me. I searched for it, but could not find a convincing answer. I understand that the following should limit n1 documents as a result and skip n2 from this.
>db.mycol.find({},{"title":1}).limit(n1).skip(n2)
Why does the following query return the second document in the collection? Can't he return anything? (Limit one gives the first document and skips that leaves us nothing).
>db.mycol.find({},{"title":1}).limit(1).skip(1)
source
share