var db = firebase.firestore();
db.collection('form')
.orderBy('id', 'asc') // optional
.onSnapshot((snapshot) => {
snapshot.docs.map((doc) => {
// console.log(doc.data());
let data = doc.data();
}});
firestoreDb.collection("ideas").orderBy("number", Query.Direction.ASCENDING)
// Create Data
const timestamp = firebase.firestore.FieldValue.serverTimestamp;
db.collection('things').add({ ...myData, createdAt: timestamp() })
// Query
db.collection('things').orderBy('createdAt').startAfter(today)