hi im current working on a minigame.
and if i want to extract how much gold i have on firebase.
how to do it they changed so many times last year syntax
to update i use this
newSize:any=‘’;
setValue(data: any) {
return this.collection.update(‘gold’, { gold: this.newSize });
it updates amount of gold i have in childobject to gold in the game to the server,
but how do i go about to retrieve the gold on server on app startup
so it doesnt start all over at 0"?
i triedsomething like this
getvalue(){
return this.gold=this.collection.gold,
console.log(this.gold);
where collection is a observablefirelist<>