{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/horizon/issues/391","repository_url":"https://api.github.com/repos/rethinkdb/horizon","labels_url":"https://api.github.com/repos/rethinkdb/horizon/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/horizon/issues/391/comments","events_url":"https://api.github.com/repos/rethinkdb/horizon/issues/391/events","html_url":"https://github.com/rethinkdb/horizon/issues/391","id":155268091,"number":391,"title":"findAll with an array of objects does not work","user":{"login":"flipace","id":953984,"avatar_url":"https://avatars.githubusercontent.com/u/953984?v=3","gravatar_id":"","url":"https://api.github.com/users/flipace","html_url":"https://github.com/flipace","followers_url":"https://api.github.com/users/flipace/followers","following_url":"https://api.github.com/users/flipace/following{/other_user}","gists_url":"https://api.github.com/users/flipace/gists{/gist_id}","starred_url":"https://api.github.com/users/flipace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flipace/subscriptions","organizations_url":"https://api.github.com/users/flipace/orgs","repos_url":"https://api.github.com/users/flipace/repos","events_url":"https://api.github.com/users/flipace/events{/privacy}","received_events_url":"https://api.github.com/users/flipace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-17T14:04:45Z","updated_at":"2016-05-17T14:17:07Z","closed_at":null,"body":"I'm trying to use *findAll* like this:\r\n\r\n```query.findAll([ { name: 'a' }, { name: 'b' } ]);```\r\n\r\nThis throws an error: \r\n\r\n```error: Error (Error: \"find\" is required) when handling error (Error: \"find\" is required).\"```\r\n\r\nIf i use:\r\n```query.findAll.apply(query, [ { name: 'a' }, { name: 'b' } ])```\r\nit works as expected."},"comment":{"url":"https://api.github.com/repos/rethinkdb/horizon/issues/comments/219731444","html_url":"https://github.com/rethinkdb/horizon/issues/391#issuecomment-219731444","issue_url":"https://api.github.com/repos/rethinkdb/horizon/issues/391","id":219731444,"user":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T14:17:07Z","updated_at":"2016-05-17T14:17:07Z","body":"`findAll` is variadic and takes multiple arguments, not a single array (it is different from e.g. `store` in this respect). So you should write:\r\n```js\r\nquery.findAll( { name: 'a' }, { name: 'b' } );\r\n```"}}