{"action":"opened","issue":{"url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/86","labels_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/86/comments","events_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/86/events","html_url":"https://github.com/dfahlander/Dexie.js/issues/86","id":67428690,"number":86,"title":"Query multiEntry index using equals","user":{"login":"tp","id":52437,"avatar_url":"https://avatars.githubusercontent.com/u/52437?v=3","gravatar_id":"","url":"https://api.github.com/users/tp","html_url":"https://github.com/tp","followers_url":"https://api.github.com/users/tp/followers","following_url":"https://api.github.com/users/tp/following{/other_user}","gists_url":"https://api.github.com/users/tp/gists{/gist_id}","starred_url":"https://api.github.com/users/tp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tp/subscriptions","organizations_url":"https://api.github.com/users/tp/orgs","repos_url":"https://api.github.com/users/tp/repos","events_url":"https://api.github.com/users/tp/events{/privacy}","received_events_url":"https://api.github.com/users/tp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-09T18:59:07Z","updated_at":"2015-04-09T18:59:07Z","closed_at":null,"body":"Given the following schema:\r\n```\r\ndb.version(2)\r\n      .stores({\r\n        friends: 'id,*parent.id'\r\n      });\r\n```\r\n\r\nAnd adding objects to it like this:\r\n```\r\ndb.friends\r\n          .add({\r\n            id: new Date().toJSON(),\r\n            name: 'Camilla',\r\n            age: 27,\r\n            parent: [{\r\n              id: 'xxx'\r\n            }]\r\n          })\r\n```\r\n\r\nI was wondering why this query does not return any results:\r\n```\r\nconsole.log('xxx children:')\r\n            this.db.friends\r\n              .where('parent.id')\r\n              .equals('xxx')\r\n              .each(function(friend) {\r\n                console.log(friend.id, friend.name);\r\n              })\r\n```\r\n\r\nSorry for the quick and dirty code, but I assume I have an error in understanding. If you think this might be a bug in Dexie, I will provide a real test case."}}