Skip to content

[firebase-firestore] FieldValue doesn't work inside the batch write #62

@gookhans

Description

@gookhans

example:

   firestore.batch().set(exampleDoc, {
            date: FieldValue.serverTimestamp()
        }) ...

This create the empty map object in the document like this: date: {}.
This problem exist in the all FieldValue methods on batch write. serverTimestamp, increment, arrayUnion.. and probably exist on GeoPoint.

it seems like, set() and update() method which are inside the batchwrite have different data-serialize stages compared to the normal set(), update() methods

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions