📌  相关文章
📜  在 firestore 中订购文档 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:37.281000             🧑  作者: Mango

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

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


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