{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angularfire2/issues/276","repository_url":"https://api.github.com/repos/angular/angularfire2","labels_url":"https://api.github.com/repos/angular/angularfire2/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/angular/angularfire2/issues/276/comments","events_url":"https://api.github.com/repos/angular/angularfire2/issues/276/events","html_url":"https://github.com/angular/angularfire2/issues/276","id":161981662,"number":276,"title":"Tutorial/documentation for key/related nodes needed","user":{"login":"doczoidberg","id":1972209,"avatar_url":"https://avatars.githubusercontent.com/u/1972209?v=3","gravatar_id":"","url":"https://api.github.com/users/doczoidberg","html_url":"https://github.com/doczoidberg","followers_url":"https://api.github.com/users/doczoidberg/followers","following_url":"https://api.github.com/users/doczoidberg/following{/other_user}","gists_url":"https://api.github.com/users/doczoidberg/gists{/gist_id}","starred_url":"https://api.github.com/users/doczoidberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doczoidberg/subscriptions","organizations_url":"https://api.github.com/users/doczoidberg/orgs","repos_url":"https://api.github.com/users/doczoidberg/repos","events_url":"https://api.github.com/users/doczoidberg/events{/privacy}","received_events_url":"https://api.github.com/users/doczoidberg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angularfire2/labels/comp:%20docs","name":"comp: docs","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angularfire2/labels/type:%20RFC%20/%20discussion%20/%20question","name":"type: RFC / discussion / question","color":"EEEEEE"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-23T17:44:45Z","updated_at":"2016-06-24T12:36:30Z","closed_at":null,"body":"stated [here](https://youtu.be/ngnSOTSS8Q8?t=1h10m22s) one can convert flat structures with secondary keys to nested json objects via map function but there is no map function on `af.database.list(ref)`?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angularfire2/issues/comments/228334772","html_url":"https://github.com/angular/angularfire2/issues/276#issuecomment-228334772","issue_url":"https://api.github.com/repos/angular/angularfire2/issues/276","id":228334772,"user":{"login":"doczoidberg","id":1972209,"avatar_url":"https://avatars.githubusercontent.com/u/1972209?v=3","gravatar_id":"","url":"https://api.github.com/users/doczoidberg","html_url":"https://github.com/doczoidberg","followers_url":"https://api.github.com/users/doczoidberg/followers","following_url":"https://api.github.com/users/doczoidberg/following{/other_user}","gists_url":"https://api.github.com/users/doczoidberg/gists{/gist_id}","starred_url":"https://api.github.com/users/doczoidberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doczoidberg/subscriptions","organizations_url":"https://api.github.com/users/doczoidberg/orgs","repos_url":"https://api.github.com/users/doczoidberg/repos","events_url":"https://api.github.com/users/doczoidberg/events{/privacy}","received_events_url":"https://api.github.com/users/doczoidberg/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T12:36:30Z","updated_at":"2016-06-24T12:36:30Z","body":"for me this works:\r\n```\r\nimport {map} from 'rxjs/operator/map';\r\nthis.meshes= map.call(af.database.list(\"/studies/\" + this.uid + '/' + this.studykey + '/meshes/'), (vals: any[]) => {\r\n                return vals.map((m) => {\r\n                    m.shapes = af.database.list(\"/meshes/\" + this.uid + '/' + m.$key);\r\n                    return m;\r\n                });\r\n            });\r\n```\r\n\r\nand this not:\r\n```\r\nimport 'rxjs/add/operator/map';\r\nthis.meshes = af.database.list(\"/studies/\" + this.uid + '/' + this.studykey + '/meshes/').map(vals: any[]) => {\r\n            return vals.map((m) => {\r\n                m.shapes = af.database.list(\"/meshes/\" + this.uid + '/' + m.$key);\r\n                return m;\r\n            });\r\n        });\r\n```\r\nerror:\r\n```\r\nERROR in ./ClientApp/components/editor/editor.ts\r\n(112,107): error TS1005: ',' expected.\r\nERROR in ./ClientApp/components/editor/editor.ts\r\n(112,116): error TS1005: ';' expected.\r\nERROR in ./ClientApp/components/editor/editor.ts\r\n(117,10): error TS1128: Declaration or statement expected.\r\nERROR in ./ClientApp/components/editor/editor.ts\r\n(255,10): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.\r\n...\r\n```"}}
{"actor":{"display_login":"doczoidberg"}}