{"action":"closed","issue":{"url":"https://api.github.com/repos/Urigo/angular-meteor/issues/938","labels_url":"https://api.github.com/repos/Urigo/angular-meteor/issues/938/labels{/name}","comments_url":"https://api.github.com/repos/Urigo/angular-meteor/issues/938/comments","events_url":"https://api.github.com/repos/Urigo/angular-meteor/issues/938/events","html_url":"https://github.com/Urigo/angular-meteor/issues/938","id":121677930,"number":938,"title":"add extra info to returned list","user":{"login":"leizard","id":5291692,"avatar_url":"https://avatars.githubusercontent.com/u/5291692?v=3","gravatar_id":"","url":"https://api.github.com/users/leizard","html_url":"https://github.com/leizard","followers_url":"https://api.github.com/users/leizard/followers","following_url":"https://api.github.com/users/leizard/following{/other_user}","gists_url":"https://api.github.com/users/leizard/gists{/gist_id}","starred_url":"https://api.github.com/users/leizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leizard/subscriptions","organizations_url":"https://api.github.com/users/leizard/orgs","repos_url":"https://api.github.com/users/leizard/repos","events_url":"https://api.github.com/users/leizard/events{/privacy}","received_events_url":"https://api.github.com/users/leizard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Urigo/angular-meteor/milestones/5","html_url":"https://github.com/Urigo/angular-meteor/milestones/1.3.1","labels_url":"https://api.github.com/repos/Urigo/angular-meteor/milestones/5/labels","id":1457991,"number":5,"title":"1.3.1","description":"Fixes to the first 1.3 version.  Main goals:\r\n\r\n* Many more docs on the new API and on migration\r\n* Much better deprecation messages\r\n* Handle Reactive Vars inside there own block - separate from helpers, probably \"this.reactiveProps\"\r\n* Handle deep changes in Reactive Vars\r\n* Create a separate package with the existing user account functions\r\n* Docs and better support for Angular2Now","creator":{"login":"Urigo","id":1297448,"avatar_url":"https://avatars.githubusercontent.com/u/1297448?v=3","gravatar_id":"","url":"https://api.github.com/users/Urigo","html_url":"https://github.com/Urigo","followers_url":"https://api.github.com/users/Urigo/followers","following_url":"https://api.github.com/users/Urigo/following{/other_user}","gists_url":"https://api.github.com/users/Urigo/gists{/gist_id}","starred_url":"https://api.github.com/users/Urigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Urigo/subscriptions","organizations_url":"https://api.github.com/users/Urigo/orgs","repos_url":"https://api.github.com/users/Urigo/repos","events_url":"https://api.github.com/users/Urigo/events{/privacy}","received_events_url":"https://api.github.com/users/Urigo/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":7,"state":"open","created_at":"2015-12-13T18:31:12Z","updated_at":"2015-12-28T00:32:17Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2015-12-11T10:11:03Z","updated_at":"2015-12-28T00:32:17Z","closed_at":"2015-12-28T00:32:17Z","body":"Hi,\r\nNormally I could return a reactive meteor collection like this : \r\n\r\n```\r\n               $scope.chats = $scope.$meteorCollection(function () {\r\n                    var chatCollection = Chats.find();\r\n                    return chatCollection;\r\n                }, false);\r\n```\r\n\r\nBut what if I want to add some extra info to my returned chat list, something like this : \r\n\r\n```\r\n                $scope.chats = $scope.$meteorCollection(function () {\r\n                    var chatCollection = Chats.find().fetch();\r\n                    _.each(chatCollection, function(chat) {\r\n                        chat.imgUrl = generateUrl(chat._id);\r\n                    });\r\n                    return chatCollection;\r\n                }, false);\r\n```\r\n\r\nwhich will return issue : \r\n```\r\nTypeError: Cannot read property 'name' of undefined\r\n    at new AngularMeteorCollection (angular-meteor.bundle.min.js:4)\r\n    at Scope.$meteorCollection (angular-meteor.bundle.min.js:4)\r\n    at Scope.$meteorCollection (angular-meteor.bundle.min.js:4)\r\n    at chat-list.controller.js:10\r\n    at processQueue (ionic.bundle.js:21888)\r\n    at ionic.bundle.js:21904\r\n    at Scope.$eval (ionic.bundle.js:23100)\r\n    at Scope.$digest (ionic.bundle.js:22916)\r\n    at ionic.bundle.js:23139\r\n    at completeOutstandingRequest (ionic.bundle.js:13604)\r\n```\r\n\r\nseem like it can only return Collection cursor, not array.\r\n\r\nHow could I resolve this ? \r\nThank you."}}