Couchbase lite mobile how to retrieve last created doc id


#1

Hi

i’m using couchbase cordova plugin and successfully created a document but can’t get that id after creation please help me to solve it


#2

The plugin leverages the CBM REST API, so the response to POST should include the Id of newly created document
https://developer.couchbase.com/documentation/mobile/1.4/references/couchbase-lite/rest-api/index.html#!/document/post


#3

hi priya

i get this response but i didn’t get response data


#4

If I understood your question above correctly , you wanted the Id of the document. That is returned in the “id” field in the result. Are you looking for something else?