Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Firestore - Unable to use FieldValue.serverTimestamp() #2429

Open
@saturnism

Description

@saturnism

Is your feature request related to a problem? Please describe.
To set a timestamp in Firestore, it's a best practice to use the server-side timestamp as opposed to a timestamp generated by the client side. The server side timestamp is set using FieldValue.serverTimestamp();

Describe the solution you'd like
Unsure how to best support this use case, since we have strongly typed Timestamp field.

Describe alternatives you've considered
Make the field type FiledValue instead of Timestamp, but it's harder when retrieving.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3firestoreFirestore Native mode support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions