{"action":"created","issue":{"url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/728","repository_url":"https://api.github.com/repos/dfahlander/Dexie.js","labels_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/728/labels{/name}","comments_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/728/comments","events_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/728/events","html_url":"https://github.com/dfahlander/Dexie.js/issues/728","id":339254790,"node_id":"MDU6SXNzdWUzMzkyNTQ3OTA=","number":728,"title":"MultiEntry Index AND query ","user":{"login":"aschmitt2","id":39417513,"node_id":"MDQ6VXNlcjM5NDE3NTEz","avatar_url":"https://avatars3.githubusercontent.com/u/39417513?v=4","gravatar_id":"","url":"https://api.github.com/users/aschmitt2","html_url":"https://github.com/aschmitt2","followers_url":"https://api.github.com/users/aschmitt2/followers","following_url":"https://api.github.com/users/aschmitt2/following{/other_user}","gists_url":"https://api.github.com/users/aschmitt2/gists{/gist_id}","starred_url":"https://api.github.com/users/aschmitt2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschmitt2/subscriptions","organizations_url":"https://api.github.com/users/aschmitt2/orgs","repos_url":"https://api.github.com/users/aschmitt2/repos","events_url":"https://api.github.com/users/aschmitt2/events{/privacy}","received_events_url":"https://api.github.com/users/aschmitt2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-08T20:24:38Z","updated_at":"2018-07-08T21:12:37Z","closed_at":null,"author_association":"NONE","body":"In the example below the query returns books that are sci-fi OR romance, is there a function that returns books that are sci-fi AND romance? \r\n\r\n```javascript\r\nfunction getSciFiOrRomanceBooks() {\r\n  return db.books\r\n    .where(\"categories\").anyOf(\"sci-fi\", \"romance\")\r\n    .distinct() \r\n    .toArray()\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/comments/403317591","html_url":"https://github.com/dfahlander/Dexie.js/issues/728#issuecomment-403317591","issue_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/728","id":403317591,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzMxNzU5MQ==","user":{"login":"dfahlander","id":6791329,"node_id":"MDQ6VXNlcjY3OTEzMjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6791329?v=4","gravatar_id":"","url":"https://api.github.com/users/dfahlander","html_url":"https://github.com/dfahlander","followers_url":"https://api.github.com/users/dfahlander/followers","following_url":"https://api.github.com/users/dfahlander/following{/other_user}","gists_url":"https://api.github.com/users/dfahlander/gists{/gist_id}","starred_url":"https://api.github.com/users/dfahlander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfahlander/subscriptions","organizations_url":"https://api.github.com/users/dfahlander/orgs","repos_url":"https://api.github.com/users/dfahlander/repos","events_url":"https://api.github.com/users/dfahlander/events{/privacy}","received_events_url":"https://api.github.com/users/dfahlander/received_events","type":"User","site_admin":false},"created_at":"2018-07-08T21:12:37Z","updated_at":"2018-07-08T21:12:37Z","author_association":"OWNER","body":"```js\r\nfunction getSciFiOrRomanceBooks() {\r\n  return db.books\r\n    .where(\"categories\").equals(\"sci-fi\")\r\n    .filter(book => book.categories.includes('romance'))\r\n    .toArray()\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"dfahlander"}}