couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Bomford" <geoffbomf...@comformark.com.au>
Subject Re: 2.0 _changes request returning all changes
Date Wed, 09 Nov 2016 22:25:13 GMT
Thanks Adam,

No, but now you point it out to me it is obvious! <g>


-----Original Message----- 
From: Adam Kocoloski
Sent: Thursday, November 10, 2016 00:54
To: user@couchdb.apache.org
Subject: Re: 2.0 _changes request returning all changes

Hi Geoff, did you add ?filter=_doc_ids to the query string parameters?

http://docs.couchdb.org/en/2.0.0/api/database/changes.html#post--db-_changes 
<http://docs.couchdb.org/en/2.0.0/api/database/changes.html#post--db-_changes>

Cheers, Adam

> On Nov 9, 2016, at 12:19 AM, Geoff Bomford 
> <geoffbomford@comformark.com.au> wrote:
>
> I’m using couchdb 2.0 and trying to get a list of revision ids for a batch 
> of documents so I can purge them.
>
> When I submit a POST to /db/_changes...
>
> {
>    "doc_ids": [
>        "NEW712064",
>        "NTG00002192"
>    ]
> }
>
> ...the response returns all changes, for all document ids.
>
> Am I doing something wrong?



Mime
View raw message