Couchbase lite mobile how to retrieve last created doc id

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

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

hi priya

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

res

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?