diff --git a/src/firestore/bind.ts b/src/firestore/bind.ts index 677e9e24..e1cc0c2d 100644 --- a/src/firestore/bind.ts +++ b/src/firestore/bind.ts @@ -75,6 +75,11 @@ interface _FirestoreRefOptionsWithDefaults extends FirestoreRefOptions { * See https://vuefire.vuejs.org/guide/global-options.html */ converter: FirestoreDataConverter + + /** + * @defaultValue `{ serverTimestamps: 'estimate' }` to avoid `null` values + */ + snapshotOptions: SnapshotOptions } /** @@ -85,6 +90,7 @@ const DEFAULT_OPTIONS: _FirestoreRefOptionsWithDefaults = { wait: true, maxRefDepth: 2, converter: firestoreDefaultConverter, + snapshotOptions: { serverTimestamps: 'estimate' }, } export { DEFAULT_OPTIONS as firestoreOptionsDefaults }