gambolputty opened a new issue #114: db.fetch(): Cannot set property 'include_docs' of undefined URL: https://github.com/apache/couchdb-nano/issues/114 Hi! I am using `db.fetch({'keys': keyArr})` to retrieve multiple docs at the same time. ## Expected Behavior Getting all docs specified in `keyArr`. ## Current Behavior I am getting an error: ``` TypeError: Cannot set property 'include_docs' of undefined at Object.fetchDocs [as fetch] (G:\Git\project\web\node_modules\nano\lib\nano.js:566:28) ``` ## Possible Solution On line 566 in nano.js `opts` is undefined. If I pass an extra empty object to the function call, everything works as expected and I am getting my docs: `db.fetch({'keys': keyArr}, {})` ## Your Environment * Version used: 7.0.0 * Node version: v8.9.4 * CouchDB version: 2.1.1 * Operating System: Windows 10
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
