{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/waterline/issues/648","labels_url":"https://api.github.com/repos/balderdashy/waterline/issues/648/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/waterline/issues/648/comments","events_url":"https://api.github.com/repos/balderdashy/waterline/issues/648/events","html_url":"https://github.com/balderdashy/waterline/issues/648","id":43300127,"number":648,"title":"multiple 'contains' on the same attribute (AND)","user":{"login":"tibotiber","id":5635553,"avatar_url":"https://avatars.githubusercontent.com/u/5635553?v=3","gravatar_id":"","url":"https://api.github.com/users/tibotiber","html_url":"https://github.com/tibotiber","followers_url":"https://api.github.com/users/tibotiber/followers","following_url":"https://api.github.com/users/tibotiber/following{/other_user}","gists_url":"https://api.github.com/users/tibotiber/gists{/gist_id}","starred_url":"https://api.github.com/users/tibotiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tibotiber/subscriptions","organizations_url":"https://api.github.com/users/tibotiber/orgs","repos_url":"https://api.github.com/users/tibotiber/repos","events_url":"https://api.github.com/users/tibotiber/events{/privacy}","received_events_url":"https://api.github.com/users/tibotiber/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/balderdashy/waterline/labels/feature","name":"feature","color":"207de5"},{"url":"https://api.github.com/repos/balderdashy/waterline/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/balderdashy/waterline/milestones/8","html_url":"https://github.com/balderdashy/waterline/milestones/0.11","labels_url":"https://api.github.com/repos/balderdashy/waterline/milestones/8/labels","id":765772,"number":8,"title":"0.11","description":"Date tentatively set to July 3rd (roughly a year after v0.10).","creator":{"login":"tjwebb","id":1009114,"avatar_url":"https://avatars.githubusercontent.com/u/1009114?v=3","gravatar_id":"","url":"https://api.github.com/users/tjwebb","html_url":"https://github.com/tjwebb","followers_url":"https://api.github.com/users/tjwebb/followers","following_url":"https://api.github.com/users/tjwebb/following{/other_user}","gists_url":"https://api.github.com/users/tjwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/tjwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjwebb/subscriptions","organizations_url":"https://api.github.com/users/tjwebb/orgs","repos_url":"https://api.github.com/users/tjwebb/repos","events_url":"https://api.github.com/users/tjwebb/events{/privacy}","received_events_url":"https://api.github.com/users/tjwebb/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":11,"state":"open","created_at":"2014-08-26T09:01:15Z","updated_at":"2015-09-22T04:35:11Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2014-09-20T04:01:58Z","updated_at":"2015-09-22T04:51:50Z","closed_at":null,"body":"Hi! \r\nWhat's the status on overloaded `contains` modifier? (#176)\r\nI've been trying to use several `contains` modifiers on the same attribute but nothing seems to work. Below is what I've tried so far...\r\n```js\r\nFishVariant.find({skuPicker: {contains: ['a', 'b']}})...\r\nFishVariant.find({skuPicker: [{contains: 'a'}, {contains: 'b'}]})...\r\nFishVariant.find([{skuPicker: {contains: 'a'}}, {skuPicker: {contains: 'b'}}])...\r\nFishVariant.find().where({skuPicker: {contains: 'a'}}).where({skuPicker: {contains: 'b'}})...\r\n```\r\nWhat I am trying to get is a record for which the skuPicker attribute contains both 'a' and 'b' (just to be clear). \r\n\r\nYou have a similar post on your [google group](https://groups.google.com/forum/#!searchin/sailsjs/contains/sailsjs/5q7TRyoXIhw/wUPTsG0PoP0J)."},"comment":{"url":"https://api.github.com/repos/balderdashy/waterline/issues/comments/142181278","html_url":"https://github.com/balderdashy/waterline/issues/648#issuecomment-142181278","issue_url":"https://api.github.com/repos/balderdashy/waterline/issues/648","id":142181278,"user":{"login":"sailsbot","id":14700466,"avatar_url":"https://avatars.githubusercontent.com/u/14700466?v=3","gravatar_id":"","url":"https://api.github.com/users/sailsbot","html_url":"https://github.com/sailsbot","followers_url":"https://api.github.com/users/sailsbot/followers","following_url":"https://api.github.com/users/sailsbot/following{/other_user}","gists_url":"https://api.github.com/users/sailsbot/gists{/gist_id}","starred_url":"https://api.github.com/users/sailsbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sailsbot/subscriptions","organizations_url":"https://api.github.com/users/sailsbot/orgs","repos_url":"https://api.github.com/users/sailsbot/repos","events_url":"https://api.github.com/users/sailsbot/events{/privacy}","received_events_url":"https://api.github.com/users/sailsbot/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T04:51:50Z","updated_at":"2015-09-22T04:51:50Z","body":"Thanks for posting, @tibotiber.  I'm a repo bot-- nice to meet you!\n\nIt has been 60 days since there have been any updates or new comments on this page.  If this issue has been resolved, feel free to disregard the rest of this message.  On the other hand, if you are still waiting on a patch, please:\n\n  + review our [contribution guide](https://github.com/balderdashy/sails/blob/master/CONTRIBUTING.md) to make sure this submission meets our criteria (only _verified bugs_ with documented features, please;  no questions, commentary, or bug reports about undocumented features or unofficial plugins)\n  + create a new issue with the latest information, including updated version details with error messages, failing tests, and a link back to [the original issue]().  This allows GitHub to automatically create a back-reference for future visitors arriving from search engines.\n\nThanks so much for your help!"}}