couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarrod Roberson <jar...@vertigrated.com>
Subject Re: adding the ability to do a POST to _changes
Date Thu, 29 Apr 2010 16:21:31 GMT
On Thu, Apr 29, 2010 at 12:20 PM, Jarrod Roberson <jarrod@vertigrated.com>wrote:

> my debug.js filter that just logged the contents of the request is working.
> but anything that actually tries to return true/false just hangs with a
> partially serialzied results
>
>
function(doc, req)
{
    var ids = JSON.parse(req.body);
    log(toJSON(ids));
    var result = false;
    for (var i = 0; i < ids.length; i++)
    {
        log(ids[i]);
      if (ids[i] == doc._id) { result = true; break; }
    }
    return result;
}


> curl -X POST http://localhost:5984/mydb/_changes?filter=transfer/by_ids -d
> '
> ["123","job_id:1234567890"]'
> {"results":[
>



-- 
Jarrod Roberson
678.551.2852

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message