{"action":"closed","issue":{"url":"https://api.github.com/repos/graphaware/neo4j-framework/issues/35","labels_url":"https://api.github.com/repos/graphaware/neo4j-framework/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/graphaware/neo4j-framework/issues/35/comments","events_url":"https://api.github.com/repos/graphaware/neo4j-framework/issues/35/events","html_url":"https://github.com/graphaware/neo4j-framework/issues/35","id":115737177,"number":35,"title":"Streaming Respones from Controller","user":{"login":"ikwattro","id":1222009,"avatar_url":"https://avatars.githubusercontent.com/u/1222009?v=3","gravatar_id":"","url":"https://api.github.com/users/ikwattro","html_url":"https://github.com/ikwattro","followers_url":"https://api.github.com/users/ikwattro/followers","following_url":"https://api.github.com/users/ikwattro/following{/other_user}","gists_url":"https://api.github.com/users/ikwattro/gists{/gist_id}","starred_url":"https://api.github.com/users/ikwattro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikwattro/subscriptions","organizations_url":"https://api.github.com/users/ikwattro/orgs","repos_url":"https://api.github.com/users/ikwattro/repos","events_url":"https://api.github.com/users/ikwattro/events{/privacy}","received_events_url":"https://api.github.com/users/ikwattro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-08T14:38:39Z","updated_at":"2015-12-12T21:41:00Z","closed_at":"2015-12-12T21:41:00Z","body":"What is good with the framework is that you can just return any objects you want to the Response.\r\n\r\nHowever it would be nice, when you are returning a lot of objects, to be able to stream the response like : \r\n\r\n```\r\npublic class test {\r\n\r\n    @RequestMapping(value=\"/recommendedrepos\", method = RequestMethod.POST)\r\n    @ResponseStatus(HttpStatus.OK)\r\n    public ArrayList<HashMap<String, Object>> recommendedRepos(@RequestBody final Request request) {\r\n        SomeStreamOutput output = new SomeStreamOutput();\r\n        //ArrayList<HashMap<String, Object>> res = new ArrayList<>();\r\n        HashMap<String, HashMap<String, Object>> results = new HashMap<>();\r\n        try (Transaction tx = database.beginTx()) {\r\n            for (String uid : request.getUids()) {\r\n                //res.add(recommender.getRepositoriesForOrganizationByUid(uid));\r\n                output.write(recommender.getRepositoriesForOrganizationByUid(uid));\r\n            }\r\n            tx.success();\r\n        }\r\n\r\n        return res;\r\n    }\r\n}\r\n```"}}