nano icon indicating copy to clipboard operation
nano copied to clipboard

Support for mango index creation

Open chrisfosterelli opened this issue 9 years ago • 1 comments

Related to #329

To create mango indices to query on, you have to POST http://couchdb/dbname/_index. This isn't possible right now, since nano's insert changes the method to PUT if a document ID is provided.

A temporary workaround is to call the relax method directly, but a better long term solution would be if nano added support for mango index creation.

Something like this might work:

const couch = nano(url)
couch.use(db).mango.createIndex({ ... }, err => {
  // handle err
})

chrisfosterelli avatar May 20 '16 23:05 chrisfosterelli

This repository has been merged into apache/couchdb-nano, please continue the discussion here

carlosduclos avatar Mar 17 '17 14:03 carlosduclos