GET /{db}/_changes for deleted docs


#1

Was wondering what the results array should like when it contains revisions for documents that are marked for deletion. Here’s the example response from the API docs:

{
    "results" : [
    {
      "seq" : 1,
      "id" : "A329CFEC-29E8-4DCF-BB49-EFCE8CD6B212",
      "changes" : [
        {
          "rev" : "1-afbf905396a144446feb2431c37065f9"
        }
      ]
    },
    {
      "seq" : 2,
      "id" : "209BB170-C1E0-473E-B3C4-A4533ACA3CDD",
      "changes" : [
        {
          "rev" : "1-ed0ebedd2fab89227b352f6455a08010"
        }
      ]
    }
  ],
  "last_seq" : 2
}

#2

There’s a "deleted": true item for a deletion. See the example in the CouchDB API docs.


#3

Thanks for the reference. Very helpful.