{"action":"created","issue":{"url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/60","labels_url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/60/comments","events_url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/60/events","html_url":"https://github.com/nolanlawson/pouchdb-find/issues/60","id":108645151,"number":60,"title":"db.find give me this error","user":{"login":"niktrix","id":1260902,"avatar_url":"https://avatars.githubusercontent.com/u/1260902?v=3","gravatar_id":"","url":"https://api.github.com/users/niktrix","html_url":"https://github.com/niktrix","followers_url":"https://api.github.com/users/niktrix/followers","following_url":"https://api.github.com/users/niktrix/following{/other_user}","gists_url":"https://api.github.com/users/niktrix/gists{/gist_id}","starred_url":"https://api.github.com/users/niktrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niktrix/subscriptions","organizations_url":"https://api.github.com/users/niktrix/orgs","repos_url":"https://api.github.com/users/niktrix/repos","events_url":"https://api.github.com/users/niktrix/events{/privacy}","received_events_url":"https://api.github.com/users/niktrix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T12:09:57Z","updated_at":"2015-10-14T00:13:16Z","closed_at":null,"body":"Cannot use 'in' operator to search for 'startkey' in undefined"},"comment":{"url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/comments/147889359","html_url":"https://github.com/nolanlawson/pouchdb-find/issues/60#issuecomment-147889359","issue_url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/60","id":147889359,"user":{"login":"Sturgelose","id":244191,"avatar_url":"https://avatars.githubusercontent.com/u/244191?v=3","gravatar_id":"","url":"https://api.github.com/users/Sturgelose","html_url":"https://github.com/Sturgelose","followers_url":"https://api.github.com/users/Sturgelose/followers","following_url":"https://api.github.com/users/Sturgelose/following{/other_user}","gists_url":"https://api.github.com/users/Sturgelose/gists{/gist_id}","starred_url":"https://api.github.com/users/Sturgelose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sturgelose/subscriptions","organizations_url":"https://api.github.com/users/Sturgelose/orgs","repos_url":"https://api.github.com/users/Sturgelose/repos","events_url":"https://api.github.com/users/Sturgelose/events{/privacy}","received_events_url":"https://api.github.com/users/Sturgelose/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T00:13:16Z","updated_at":"2015-10-14T00:13:16Z","body":"I'm having the same error. To reproduce, you can use:\r\nIndex\r\n```\r\n      db.createIndex({\r\n        index: {\r\n          fields: ['sectionId', 'contentType', 'date'],\r\n          name: 'contentList',\r\n          ddoc: 'contentList'\r\n        }\r\n      }).then(success).catch(error);\r\n```\r\n\r\n```\r\n        db.find({\r\n          selector: {\r\n            sectionId: {$in: ['section1']},\r\n            contentType: 'news'\r\n          },\r\n          //sort: ['date']\r\n        }).then(function (result) {\r\n          deferred.resolve(result)\r\n        }).catch(function (err) {\r\n          deferred.reject(err);\r\n        });\r\n```"}}