Skip to content

Increment value #148

Answered by BearDooks
macktns asked this question in Q&A
Feb 28, 2021 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

@macktns

We are limited with the methods and functions that Firebase offers in the REST API. I looked again but the increment method is not available to us.

In Firestore you can use the get() function to pull that data and, increment it, and then us update(). It adds a few steps but it will work. I just updated our Wiki yesterday with the Update function for Firestore.

https://github.com/GodotNuts/GodotFirebase/wiki/Firestore#update-a-document

I would have to ask some of the other members of the team about the RTD.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@macktns
Comment options

@WolfgangSenff
Comment options

@WolfgangSenff
Comment options

@macktns
Comment options

Answer selected by macktns
Comment options

You must be logged in to vote
1 reply
@WolfgangSenff
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants