{"action":"created","issue":{"url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/189","labels_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/189/comments","events_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/189/events","html_url":"https://github.com/florianholzapfel/express-restify-mongoose/issues/189","id":113691762,"number":189,"title":"Read from secondary (either per collection/request)","user":{"login":"mattcasey","id":305398,"avatar_url":"https://avatars.githubusercontent.com/u/305398?v=3","gravatar_id":"","url":"https://api.github.com/users/mattcasey","html_url":"https://github.com/mattcasey","followers_url":"https://api.github.com/users/mattcasey/followers","following_url":"https://api.github.com/users/mattcasey/following{/other_user}","gists_url":"https://api.github.com/users/mattcasey/gists{/gist_id}","starred_url":"https://api.github.com/users/mattcasey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattcasey/subscriptions","organizations_url":"https://api.github.com/users/mattcasey/orgs","repos_url":"https://api.github.com/users/mattcasey/repos","events_url":"https://api.github.com/users/mattcasey/events{/privacy}","received_events_url":"https://api.github.com/users/mattcasey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-27T21:19:52Z","updated_at":"2015-10-27T21:20:19Z","closed_at":null,"body":"Hi, I need the option to query slaves per request, or at least per collection, since many different apps use our internal api that's served by this library. Can maintainers suggest a fix? We can probably add support ourselves, ideally in a way that can be merged back to the primary code.\r\n\r\nAlternatively, maybe we can add middleware that modifies the query before execution? Haven't looked at the latest version of this repo to see if that's possible..."},"comment":{"url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/comments/151647393","html_url":"https://github.com/florianholzapfel/express-restify-mongoose/issues/189#issuecomment-151647393","issue_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/189","id":151647393,"user":{"login":"mattcasey","id":305398,"avatar_url":"https://avatars.githubusercontent.com/u/305398?v=3","gravatar_id":"","url":"https://api.github.com/users/mattcasey","html_url":"https://github.com/mattcasey","followers_url":"https://api.github.com/users/mattcasey/followers","following_url":"https://api.github.com/users/mattcasey/following{/other_user}","gists_url":"https://api.github.com/users/mattcasey/gists{/gist_id}","starred_url":"https://api.github.com/users/mattcasey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattcasey/subscriptions","organizations_url":"https://api.github.com/users/mattcasey/orgs","repos_url":"https://api.github.com/users/mattcasey/repos","events_url":"https://api.github.com/users/mattcasey/events{/privacy}","received_events_url":"https://api.github.com/users/mattcasey/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T21:20:19Z","updated_at":"2015-10-27T21:20:19Z","body":"related issue: https://github.com/florianholzapfel/express-restify-mongoose/issues/147 (the fix doesnt work because it means ALL queries will go to secondary)"}}