It depends how you deleted the doc. if you used the http DELETE method, then the document only has _id, _rev and _deleted properties.
If you updated the document, preserving content, and added the _deleted:true property, then all your other properties are still there. On 19 December 2012 15:23, Pulkit Singhal <[email protected]> wrote: > I was recently having trouble with deleted documents not being replicated > and it seems that my filter was lacking: > >> if (doc._deleted) { >> return true; >> } >> > > I suppose that when _deleted is true, CouchDB might not pass the rest of > the properties that are usually attached to a doc? > > Otherwise the rest of my filter (even without _deleted check) really should > have been able to return true: > >> if (doc.owner && doc.owner=<blah logic>) { >> return true; >> } >> > > Thoughts?
