Couchbase lite mobile how to retrieve last created doc id


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!/document/post

hi priya

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


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?