How To Get The Records Which Are Offline In Firestore
I want to go offline and add 1 entry in cities collection using this code below: firebase.firestore().collection('cities').doc('NY').set({ name: 'Los Angeles', state: 'CA',
Solution 1:
Firestore doesn't offer a type of query that returns only documents written to local cache but have not been synchronized.
The best you can do is make the query normally, and inspect the metadata of each DocumentSnapshot object. The SnapshotMetadata will tell you if the document hasPendingWrites that are not yet synchronized with the server.
Post a Comment for "How To Get The Records Which Are Offline In Firestore"