📜  firebase orderby - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:06.509000             🧑  作者: 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)