redgeoff / delta-pouch

Conflict-free collaborative editing for PouchDB
196 stars 13 forks source link

$id not returned if you don't specify it #2

Closed nolanlawson closed 10 years ago

nolanlawson commented 10 years ago

According to the docs, if I do

pouch.save({count: 0}).

Then it should return a promise that tells me what the $id is, but in fact it just gives me the standard couchdb output:

{ ok: true,
  id: '8DC5C9CF-B8D5-50B7-9384-1B92DEC5CFF3',
  rev: '1-a907fb1bbc047764750ecab5e11a0673' }

This is fine, since I can see the $id anyway when I do all(), but you might want to update the docs.

I'm using an http PouchDB (new PouchDB('http://localhost:5984/foo')).

nolanlawson commented 10 years ago

:thumbsup: