📜  以升序获取集合 firestore - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:20.536000             🧑  作者: Mango

代码示例3
// Create Data
const timestamp = firebase.firestore.FieldValue.serverTimestamp;

db.collection('things').add({ ...myData, createdAt: timestamp() })


// Query
db.collection('things').orderBy('createdAt').startAfter(today)