Reputation: 13
So I have a path called game_bans, and I want it to store the game bans by the user id, not the auto generated ID.
I'd like for it to save like this;
But the way it works is;
Upvotes: 0
Views: 100
Reputation: 24409
Use ref
and set
.
I don't know your code, but something like:
database.ref('/game_bans/' + bannedUserId).set({moderator: ... });
Upvotes: 1