ibm-cloud-docs / Cloudant

12 stars 46 forks source link

cloudant.post_all_docs_queries #52

Open keerat21 opened 10 months ago

keerat21 commented 10 months ago
    dealer_id = int(request.args.get('dealerid'))
    if request.method=="GET":
                # Define a query to retrieve reviews for the specified dealer
        query = {
            "include_docs":True,
        "selector": {
            "id": 2
    }}

        print(dealer_id)
        response = cloudant.post_all_docs_queries(
        db='reviews',
        queries=[query]
        ).get_result()``

I am getting all the results it is not refining the "id" that is in the "docs" key