How to access firestore.Timestamp from Firebase Cloud Function

后端 未结 5 1571
再見小時候
再見小時候 2021-02-12 17:38

We are in the middle of converting our Firestore Date object to the new Timestamp Objects

We have done so successfully on the front end by importing firestore



        
5条回答
  •  无人及你
    2021-02-12 18:24

    This worked for me from node:

    firebase = require('firebase')
    firebase.firestore.Timestamp
    

提交回复
热议问题