Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Support for mango index creation #330

Open
chrisfosterelli opened this issue May 20, 2016 · 1 comment
Open

Support for mango index creation #330

chrisfosterelli opened this issue May 20, 2016 · 1 comment

Comments

@chrisfosterelli
Copy link

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
})
@carlosduclos
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants