Skip to content

TypeScript code snippet – How to sort documents in firebase database date wise?

// Create Data
const timestamp = firebase.firestore.FieldValue.serverTimestamp;

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

// Query
See also  Java code snippet - How to secure specific url in spring security?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.