{"action":"opened","issue":{"url":"https://api.github.com/repos/fortunejs/fortune/issues/186","repository_url":"https://api.github.com/repos/fortunejs/fortune","labels_url":"https://api.github.com/repos/fortunejs/fortune/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/fortunejs/fortune/issues/186/comments","events_url":"https://api.github.com/repos/fortunejs/fortune/issues/186/events","html_url":"https://github.com/fortunejs/fortune/issues/186","id":139085430,"number":186,"title":"Adapter find options additions ","user":{"login":"kketch","id":2300704,"avatar_url":"https://avatars.githubusercontent.com/u/2300704?v=3","gravatar_id":"","url":"https://api.github.com/users/kketch","html_url":"https://github.com/kketch","followers_url":"https://api.github.com/users/kketch/followers","following_url":"https://api.github.com/users/kketch/following{/other_user}","gists_url":"https://api.github.com/users/kketch/gists{/gist_id}","starred_url":"https://api.github.com/users/kketch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kketch/subscriptions","organizations_url":"https://api.github.com/users/kketch/orgs","repos_url":"https://api.github.com/users/kketch/repos","events_url":"https://api.github.com/users/kketch/events{/privacy}","received_events_url":"https://api.github.com/users/kketch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-07T20:30:11Z","updated_at":"2016-03-07T20:30:11Z","closed_at":null,"body":"I'm wondering how the Adapter.find API could evolve if fortune was to support more querying features\r\n\r\nAvailable options currently are :\r\n* match\r\n* exists\r\n* range\r\n\r\nThe API does not seem to allow more advanced queries with negation for match, or a logical or operator.\r\nAn example is the [waterline query language](https://github.com/balderdashy/waterline-docs/blob/master/queries/query-language.md) which has support for some features that I think would be useful in fortune : \r\n\r\n* not\r\n* or\r\n* startWith\r\n* contains\r\n* endsWith\r\n\r\nI'm not sure how such features would change the current API for adapters. I know that implementing this on fortune and adapters could be a lot of work. But I'm interested to work on these options \r\n\r\nWhat about adding these new features ?"}}