{"action":"created","issue":{"url":"https://api.github.com/repos/SoftInstigate/restheart/issues/11","labels_url":"https://api.github.com/repos/SoftInstigate/restheart/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/SoftInstigate/restheart/issues/11/comments","events_url":"https://api.github.com/repos/SoftInstigate/restheart/issues/11/events","html_url":"https://github.com/SoftInstigate/restheart/issues/11","id":54321768,"number":11,"title":"Roadmap link","user":{"login":"jettdigital","id":10052973,"avatar_url":"https://avatars.githubusercontent.com/u/10052973?v=3","gravatar_id":"","url":"https://api.github.com/users/jettdigital","html_url":"https://github.com/jettdigital","followers_url":"https://api.github.com/users/jettdigital/followers","following_url":"https://api.github.com/users/jettdigital/following{/other_user}","gists_url":"https://api.github.com/users/jettdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/jettdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jettdigital/subscriptions","organizations_url":"https://api.github.com/users/jettdigital/orgs","repos_url":"https://api.github.com/users/jettdigital/repos","events_url":"https://api.github.com/users/jettdigital/events{/privacy}","received_events_url":"https://api.github.com/users/jettdigital/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SoftInstigate/restheart/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/SoftInstigate/restheart/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"mkjsix","id":365382,"avatar_url":"https://avatars.githubusercontent.com/u/365382?v=3","gravatar_id":"","url":"https://api.github.com/users/mkjsix","html_url":"https://github.com/mkjsix","followers_url":"https://api.github.com/users/mkjsix/followers","following_url":"https://api.github.com/users/mkjsix/following{/other_user}","gists_url":"https://api.github.com/users/mkjsix/gists{/gist_id}","starred_url":"https://api.github.com/users/mkjsix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkjsix/subscriptions","organizations_url":"https://api.github.com/users/mkjsix/orgs","repos_url":"https://api.github.com/users/mkjsix/repos","events_url":"https://api.github.com/users/mkjsix/events{/privacy}","received_events_url":"https://api.github.com/users/mkjsix/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-01-14T13:28:43Z","updated_at":"2015-01-15T09:42:10Z","closed_at":null,"body":"Hi there, l'm in love with restheart! Can a roadmap be made and linked to off the readme and regular site? It would be useful to see where the project is headed and what contributions would align with the overall goals for the project. Again, great work!"},"comment":{"url":"https://api.github.com/repos/SoftInstigate/restheart/issues/comments/70061297","html_url":"https://github.com/SoftInstigate/restheart/issues/11#issuecomment-70061297","issue_url":"https://api.github.com/repos/SoftInstigate/restheart/issues/11","id":70061297,"user":{"login":"ujibang","id":6876503,"avatar_url":"https://avatars.githubusercontent.com/u/6876503?v=3","gravatar_id":"","url":"https://api.github.com/users/ujibang","html_url":"https://github.com/ujibang","followers_url":"https://api.github.com/users/ujibang/followers","following_url":"https://api.github.com/users/ujibang/following{/other_user}","gists_url":"https://api.github.com/users/ujibang/gists{/gist_id}","starred_url":"https://api.github.com/users/ujibang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ujibang/subscriptions","organizations_url":"https://api.github.com/users/ujibang/orgs","repos_url":"https://api.github.com/users/ujibang/repos","events_url":"https://api.github.com/users/ujibang/events{/privacy}","received_events_url":"https://api.github.com/users/ujibang/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T09:42:10Z","updated_at":"2015-01-15T09:42:10Z","body":"Adding support for Nashorn is a brilliant idea! This would allow developers store javascript application logic in mongodb and bind the execution to specific URIs.\r\n\r\nFor your information, we are going to implement for release 0.9.9 what we call stored queries, i.e. we'll allow to define aggregation and map reduce queries and store them as collection properties.\r\n\r\nThe \"developer\" is allowed to define the queries as collection properties via the API (it is a PATCH to the collection) and the \"users\" are only allowed to invoke the queries.\r\n\r\nFor example, the following store query makes available the /db/coll/_queries/avgage resource\r\n\r\n    {\r\n     rels: {...},\r\n     queries: [\r\n      { \r\n        uri: 'avgage',\r\n        type: 'mapReduce',\r\n        map: 'function() { emit(this.age)',\r\n        reduce: 'function(key, values)\r\n        { return Array.avg(values)}' \r\n       }\r\n    ]\r\n    ...\r\n    }\r\n\r\nFollowing your idea, we'll be able not only to define data API but also custom application logic API with a similar approach..."}}