Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Send POST request to _changes #296

@andrelramos

Description

@andrelramos

I'm using filters to get some changes on my server, but my team needed create filters that receives arguments, like the below function:

function (doc, req) { 
    
     if(doc.doc_type === req.query.doc_type) {
     
     return true;
  }
  
  return false;
}

On python code, i'm calling this function using changes method like this:

client[database].changes(filter='filters/getByDocType')

I didn't find a parameter on changes method where i can pass my filter data that is a str value or a dict like a json. On couchdb docs, to do it i need use a POST request and send the filter data on request body. So how can i call some thing like .addPostParams(**params) ? Check out the couchdb docs about it http://docs.couchdb.org/en/2.0.0/api/database/changes.html#post--db-_changes

Informations about my environment

  • python-cloudant version: 2.4.0
  • Python version: 3.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions