Skip to content

[FR] Add the increment method for realtime database #675

Open
@Tom3652

Description

@Tom3652

Is your feature request related to a problem? Please describe.

Please see this SO question that i have asked.

Describe the solution you'd like

I would like to be able to increment a value server side such as :

from firebase_admin import db

realtime_db = db.reference(path="/", app=app, url="myurl")
realtime_db.update({
   f"chats/{uid}/num": db.increment(1),
})

Describe alternatives you've considered

The alternative described in the SO question as an answer.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions