javascript - firebase: retrieve specific fields from object -
i using firebase storing data of players. want show statistics of players have structure like:
players:{ [playerid]:{ info:{ firstname: 'jon', lastname: 'mark', otherinfo:'aaa' }, othertoomuchinfo:{}, stats:{ totalplayed: 10, scorecounta: 14, scorecountb: 24, } }, [playerid]:{ info:{ firstname: 'hen', lastname: 'lee', otherinfo:'qwe' }, othertoomuchinfo:{}, stats:{ totalplayed: 33, scorecounta: 12, scorecountb: 43, } } }
how can retrieve stats
of players firebase without loading other information?
Comments
Post a Comment