{"action":"created","issue":{"url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/103","labels_url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/103/comments","events_url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/103/events","html_url":"https://github.com/nolanlawson/pouchdb-find/issues/103","id":114455438,"number":103,"title":"not work in node.js","user":{"login":"c941010623","id":4303823,"avatar_url":"https://avatars.githubusercontent.com/u/4303823?v=3","gravatar_id":"","url":"https://api.github.com/users/c941010623","html_url":"https://github.com/c941010623","followers_url":"https://api.github.com/users/c941010623/followers","following_url":"https://api.github.com/users/c941010623/following{/other_user}","gists_url":"https://api.github.com/users/c941010623/gists{/gist_id}","starred_url":"https://api.github.com/users/c941010623/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c941010623/subscriptions","organizations_url":"https://api.github.com/users/c941010623/orgs","repos_url":"https://api.github.com/users/c941010623/repos","events_url":"https://api.github.com/users/c941010623/events{/privacy}","received_events_url":"https://api.github.com/users/c941010623/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-01T07:20:36Z","updated_at":"2015-11-03T06:48:57Z","closed_at":null,"body":"i have couchdb 1.6.1 and i install pouchdb in my nodejs\r\nuse code:\r\n\r\nvar PouchDB = require('pouchdb');\r\nPouchDB.plugin(require('pouchdb-find'));\r\nvar db = new PouchDB('http://localhost:5984/testdb');\r\n\r\ndb.find({\r\n    selector: {\r\n        name: 'Mario'\r\n    },\r\n    fields: ['_id', 'name'],\r\n    sort: ['name']\r\n}).then(function (result) {\r\n    console.log(result)\r\n}).catch(function (err) {\r\n    console.log(err)\r\n});\r\n\r\nany ans...\r\n\r\n{ [bad_request: Something wrong with the request]\r\n  status: 400,\r\n  name: 'bad_request',\r\n  message: 'Something wrong with the request',\r\n  error: true,\r\n  reason: 'Referer header required.' }\r\n\r\nwhy ???\r\nhow can i do ?"},"comment":{"url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/comments/153261289","html_url":"https://github.com/nolanlawson/pouchdb-find/issues/103#issuecomment-153261289","issue_url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/103","id":153261289,"user":{"login":"garrensmith","id":179458,"avatar_url":"https://avatars.githubusercontent.com/u/179458?v=3","gravatar_id":"","url":"https://api.github.com/users/garrensmith","html_url":"https://github.com/garrensmith","followers_url":"https://api.github.com/users/garrensmith/followers","following_url":"https://api.github.com/users/garrensmith/following{/other_user}","gists_url":"https://api.github.com/users/garrensmith/gists{/gist_id}","starred_url":"https://api.github.com/users/garrensmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrensmith/subscriptions","organizations_url":"https://api.github.com/users/garrensmith/orgs","repos_url":"https://api.github.com/users/garrensmith/repos","events_url":"https://api.github.com/users/garrensmith/events{/privacy}","received_events_url":"https://api.github.com/users/garrensmith/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T06:48:56Z","updated_at":"2015-11-03T06:48:56Z","body":"CouchDB 1.6 doesn't support query. You need to use CouchDB from the master branch or PouchDB-server\n\nAll misspelling thanks to my iPhone\n\n> On 02 Nov 2015, at 2:07 PM, c941010623 <notifications@github.com> wrote:\n> \n> i only use npm install pouchdb-find and npm install pouchdb\n> couchdb is 1.6.1\n> \n> and not use db.find to couchdb ....\n> but node.js local is work\n> \n> why ??\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}