I am having issues getting to store my data for 'players' into my team data. It does save with the team id but i want it to be nested inside of teams.
So I need the players to actually add on and be pusghed onto the empty 'players'...
My code from my VUEX store pushing to firebase is...
firebase
.database()
.ref('teams/')
.child(payload.id)
.push(player)
.then(user => {
commit('updatePlayers', {
players: payload.players
});
})
.catch(error => {
console.log(error);
});
// Reach out to firebase and store it
},
