You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/03/10 10:53:47 UTC

[GitHub] [couchdb-nano] glynnbird commented on issue #213: The `queries` parameter is no longer supported at this endpoint

glynnbird commented on issue #213: The `queries` parameter is no longer supported at this endpoint
URL: https://github.com/apache/couchdb-nano/issues/213#issuecomment-597024047
 
 
   As the [release notes for CouchDB 3](https://docs.couchdb.org/en/latest/whatsnew/3.0.html#version-3-0-0) state, the queries parameter is no longer supported and is replaced by a [queries endpoint](https://docs.couchdb.org/en/latest/api/ddoc/views.html#api-ddoc-view-multiple-queries). The queries endpoint isn't directly modelled as function call, but you can create a custom request e.g you can do something like:
   
   ```js
   const q = {
       "queries": [
           {
               "keys": [
                   "meatballs",
                   "spaghetti"
               ]
           },
           {
               "limit": 3,
               "skip": 2
           }
       ]
   }
   const req = {
     method: 'post',
     db: 'mydb',
     path: '_design/mydesigndoc/_view/myview/_queries',
     body: q
   }
   const result = await db.request(req)
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services