{"action":"created","issue":{"url":"https://api.github.com/repos/infinitered/cdq/issues/102","labels_url":"https://api.github.com/repos/infinitered/cdq/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/infinitered/cdq/issues/102/comments","events_url":"https://api.github.com/repos/infinitered/cdq/issues/102/events","html_url":"https://github.com/infinitered/cdq/issues/102","id":88841339,"number":102,"title":"Support case insensitive queries","user":{"login":"markrickert","id":139261,"avatar_url":"https://avatars.githubusercontent.com/u/139261?v=3","gravatar_id":"","url":"https://api.github.com/users/markrickert","html_url":"https://github.com/markrickert","followers_url":"https://api.github.com/users/markrickert/followers","following_url":"https://api.github.com/users/markrickert/following{/other_user}","gists_url":"https://api.github.com/users/markrickert/gists{/gist_id}","starred_url":"https://api.github.com/users/markrickert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markrickert/subscriptions","organizations_url":"https://api.github.com/users/markrickert/orgs","repos_url":"https://api.github.com/users/markrickert/repos","events_url":"https://api.github.com/users/markrickert/events{/privacy}","received_events_url":"https://api.github.com/users/markrickert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-16T21:10:04Z","updated_at":"2015-06-16T21:31:57Z","closed_at":null,"body":"The `NSPredicate` format for doing this is appending `[cd]` to the end of the condition, for example:\r\n\r\n```ruby\r\n# Would match \"Mark\" and \"mark\"\r\nNSPredicate.predicateWithFormat(\"name CONTAINS[cd] %@\", 'ar')\r\n```\r\n\r\nThoughts on an api for this? Or should we just notate it in the documentation and people can create their own `where()` statements?"},"comment":{"url":"https://api.github.com/repos/infinitered/cdq/issues/comments/112575245","html_url":"https://github.com/infinitered/cdq/issues/102#issuecomment-112575245","issue_url":"https://api.github.com/repos/infinitered/cdq/issues/102","id":112575245,"user":{"login":"kemiller","id":6359,"avatar_url":"https://avatars.githubusercontent.com/u/6359?v=3","gravatar_id":"","url":"https://api.github.com/users/kemiller","html_url":"https://github.com/kemiller","followers_url":"https://api.github.com/users/kemiller/followers","following_url":"https://api.github.com/users/kemiller/following{/other_user}","gists_url":"https://api.github.com/users/kemiller/gists{/gist_id}","starred_url":"https://api.github.com/users/kemiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kemiller/subscriptions","organizations_url":"https://api.github.com/users/kemiller/orgs","repos_url":"https://api.github.com/users/kemiller/repos","events_url":"https://api.github.com/users/kemiller/events{/privacy}","received_events_url":"https://api.github.com/users/kemiller/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T21:31:57Z","updated_at":"2015-06-16T21:31:57Z","body":"You can do this with `.where(:name).eq(\"ar\", NSCaseInsensitivePredicateOption)` which admittedly does not roll right off the tongue.  We could make friendlier version with symbols.  "}}