Skip to content

Settings and activity

1 result found

  1. 12 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  General » Firestore  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Francesco Simonazzi commented  · 

    The problem is not just about the Quota, it's also critically important to get the document data at the time of writing. One clear example of this would be when incrementing a numeric field, doc.update({ [field]: FieldValue.increment(1) }), everything works fine in the DB, but server side, how do I know what the value was when it's been incremented by my request? by the time I make a get request, somebody else might have increased already such counter. It mostly defeats the purpose of calling FieldValue.increment if I cannot make sure what the value was when I increased it
    @Alexander Trakhimenok, sounds more like a workaround than the actual solution. Honestly I don't understand why the REST Api do return the document, while the various SDKs will not.

    Francesco Simonazzi supported this idea  ·