有没有办法在没有自动生成的 ID 的情况下使用 firebase push() 方法?

Is there a way to use the firebase push() method without their auto generated IDs?

所以我有一个名为 game_bans 的路径,我希望它通过用户 ID 存储游戏禁令,而不是自动生成的 ID。

我希望它能像这样保存;

但它的工作方式是;

使用 refset。 我不知道你的代码,但类似于:

database.ref('/game_bans/' + bannedUserId).set({moderator: ... });