That's Couchbase Server, not Couchbase Lite. The rev ID is _rev. There are no expiration or flags.
--Jens [via iPhone] > On Jul 1, 2015, at 9:41 PM, atom992 <[email protected]> wrote: > > Thanks, It works. > and How can I use other values in meta object? such as rev,expiration,flags. > >> On Thursday, July 2, 2015 at 11:56:33 AM UTC+8, atom992 wrote: >> >> >> I am using PhoneGap to develop a android app, and I wrote a view like this: >> >> db.put(design, { >> views : { >> getIDByKey : { >> map : function (doc) { >> if(doc.type && doc.key){ >> emit([doc.key,doc.type],doc.id); >> } >> }.toString() >> } >> >> >> but It not works (It shows "null" in the response that [doc.id] should be >> show), not like the couchbase server's view, It can take (doc,meta) two >> parameter, How can I emit doc.id in couchbase Lite's view, such as be part >> of key(emit([doc.type,doc.id],[doc.value]) I want to use doc.type and doc.id >> to get doc.value)? > > -- > 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/2e6350e5-3d8d-4dd5-8496-fbafc4efda32%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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/0F83083C-B9F2-4530-B192-DCD3541AF197%40mooseyard.com. For more options, visit https://groups.google.com/d/optout.
