{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/waterline/issues/1334","repository_url":"https://api.github.com/repos/balderdashy/waterline","labels_url":"https://api.github.com/repos/balderdashy/waterline/issues/1334/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/waterline/issues/1334/comments","events_url":"https://api.github.com/repos/balderdashy/waterline/issues/1334/events","html_url":"https://github.com/balderdashy/waterline/issues/1334","id":146097159,"number":1334,"title":"Cannot use OR in populate subcriteria with one value null","user":{"login":"fatalhck","id":4139284,"avatar_url":"https://avatars.githubusercontent.com/u/4139284?v=3","gravatar_id":"","url":"https://api.github.com/users/fatalhck","html_url":"https://github.com/fatalhck","followers_url":"https://api.github.com/users/fatalhck/followers","following_url":"https://api.github.com/users/fatalhck/following{/other_user}","gists_url":"https://api.github.com/users/fatalhck/gists{/gist_id}","starred_url":"https://api.github.com/users/fatalhck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatalhck/subscriptions","organizations_url":"https://api.github.com/users/fatalhck/orgs","repos_url":"https://api.github.com/users/fatalhck/repos","events_url":"https://api.github.com/users/fatalhck/events{/privacy}","received_events_url":"https://api.github.com/users/fatalhck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-05T20:11:11Z","updated_at":"2016-04-06T12:51:45Z","closed_at":null,"body":"<!--\r\n======================================================\r\nHELLO, and welcome to the (experimental) Sailsbot\r\nissue-submission system.  If you encounter any\r\nproblems with this system, please contact\r\nsgress454@treeline.io\r\n\r\nFIRST THINGS FIRST: please fill out the following info \r\n(Don't change text between **) \r\n======================================================\r\n### BEGIN VERSION INFO ###\r\n-->\r\n\r\n**Waterline version**:0.21.1\r\n**Node version**:5.0.0\r\n**NPM version**: 3.5.2\r\n**Operating system**: Windows 10\r\n\r\n<!-- \r\n### END VERSION INFO ###\r\n======================================================\r\nGREAT! - Now read carefully \r\n(Sailsbot will know if you don't)!  \r\n======================================================\r\n\r\nBefore you submit an issue for Waterline, please make sure you have read the Sails issue contribution guide (http://bit.ly/sails-issue-guide) carefully, and then verify the following by typing an X in between each set of [ ] brackets below (don't make any other changes to the text!):\r\n\r\n### BEGIN PLEDGE ###\r\n- [X] I am experiencing a concrete technical issue with Waterline (ideas and feature proposals should follow the guide for proposing features and enhancements (http://bit.ly/sails-feature-guide), which involves making a pull request).  If you're not 100% certain whether it's a bug or not, that's okay--you may continue.  The worst that can happen is that the issue will be closed and we'll point you in the right direction.\r\n\r\n- [X] I am not asking a question about how to use Waterline or about whether or not Waterline has a certain feature (please refer to the documentation(http://sailsjs.org), or post on http://stackoverflow.com, our Google Group (http://bit.ly/sails-google-group) or our live chat (https://gitter.im/balderdashy/sails).\r\n\r\n- [X] I have already searched for related issues, and found none open (if you found a related _closed_ issue, please link to it in your post).\r\n\r\n- [X] My issue title is concise, on-topic and polite.\r\n\r\nand finally...\r\n- [X] **I can provide steps to reproduce this issue that others can follow.**\r\n\r\nIdeally, this involves creating a new repo that demonstrates the problem (see instructions at http://bit.ly/waterline-issue-repo).  Even though your issue may seem so simple to reproduce that a new repo is unnecessary, you'd be surprised how many solutions present themselves when you start from `sails new` and attempt to recreate your issue from scratch in a new app.  This ensures that the real issue isn't in your user code or in a third-party module.  If you're absolutely _convinced_ that a new repo is unnecessary, provide clear, concise and _specific_ steps to reproduce the problem in your post (not \"create a model then do blueprint create\").\r\n### END PLEDGE ###\r\n\r\nOKAY--THANKS FOR READING!  Continue posting details of your issue below. -->\r\n<hr/>\r\nI need something like this\r\n\r\n` User.findOneByEmail(email)\r\n                .populate('patients', {\r\n                    where: {\r\n                        disabled: [false,null]\r\n                    }\r\n                })`\r\n\r\nbut the populate cames empty in that case but if I do in this way:\r\n\r\n` User.findOneByEmail(email)\r\n                .populate('patients', {\r\n                    where: {\r\n                        disabled: null\r\n                    }\r\n                })`\r\n\r\nworks fine"},"comment":{"url":"https://api.github.com/repos/balderdashy/waterline/issues/comments/206356157","html_url":"https://github.com/balderdashy/waterline/issues/1334#issuecomment-206356157","issue_url":"https://api.github.com/repos/balderdashy/waterline/issues/1334","id":206356157,"user":{"login":"deniprogram","id":8001911,"avatar_url":"https://avatars.githubusercontent.com/u/8001911?v=3","gravatar_id":"","url":"https://api.github.com/users/deniprogram","html_url":"https://github.com/deniprogram","followers_url":"https://api.github.com/users/deniprogram/followers","following_url":"https://api.github.com/users/deniprogram/following{/other_user}","gists_url":"https://api.github.com/users/deniprogram/gists{/gist_id}","starred_url":"https://api.github.com/users/deniprogram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniprogram/subscriptions","organizations_url":"https://api.github.com/users/deniprogram/orgs","repos_url":"https://api.github.com/users/deniprogram/repos","events_url":"https://api.github.com/users/deniprogram/events{/privacy}","received_events_url":"https://api.github.com/users/deniprogram/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T12:51:45Z","updated_at":"2016-04-06T12:51:45Z","body":"+1"}}