Couchbase lite pagenation notworking.
Map Function As following:
map: function (doc) {
if (doc.type && doc.updatedOn&&doc.title) {
emit(doc.updatedOn,
{
id:doc._id,
type:doc.type,
title: doc.title,
description: doc.description,
featuredImage:doc.featuredImage,
rev: doc._rev,
totalLike:doc.totalLikes,
totalShares:doc.totalShares,
authorName:doc.author.firstname+" "+doc.author.lastName,
updatedOn:doc.updatedOn,
read:doc.read,
link:(doc.type=="link")?doc.link:false
}
)
}
}.toString()
Pagenation try as .
stale=false&descending=true&startKey=%222016-10-31%2014:17:13%22&startkey_docid=taa-35&limit=10&skip=1_all_docs
but always returining same result.