I am having troubles getting sorted results from a sync gateway view.
Here is my map function:
{
"views":{
"scenes_for_job":{
"map":"function (doc, meta) { if (doc.type == \"scene\") {
emit([doc.job_id, doc.sceneNumber], doc); } }"
}
}
}
And here is my REST call:
http://...:4985/mydb/_design/scenes_for_job/_view/scenes_for_job?endkey=["FEB04B15-C3E7-4885-9275-395C350F1F00","\uefff"]
<http://approvalstest.filmworkers.com:4985/shotbotdb/_design/scenes_for_job/_view/scenes_for_job?endkey=%5B%22FEB04B15-C3E7-4885-9275-395C350F1F00%22,%22%5Cuefff%22%5D>
&descending=false&stale=false
My data returning from this has the same doc.job_id for all docs and
different doc.sceneNumber for each doc. I would like an ascending sort on
sceneNumber.
What am I missing here?
Also, I am only returning the entire doc for debugging purposes, I will
remove that later on down the line.
Todd
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/405867b9-7ce0-42b1-a0c6-613fd9ae5c8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.