aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/CHANGELOG.md
diff options
context:
space:
mode:
authorGravatar rsgowman <rgowman@google.com>2018-04-18 10:30:37 -0400
committerGravatar GitHub <noreply@github.com>2018-04-18 10:30:37 -0400
commita5b3185ed372fc16b5430c230c197e3dbd34f953 (patch)
tree8f77610cf27ee35f5cccad825b6a33e74d7be8ef /Firestore/CHANGELOG.md
parent6a39c71be83f589550c7dfa3c6d89d8b6145887c (diff)
Add GetOptions for controlling offline get behaviour (#655)
Add option to allow the user to control where DocumentReference.getDocument() and CollectionReference.getDocuments() fetches from. By default, it fetches from the server (if possible) and falls back to the local cache. It's now possible to alternatively fetch from the local cache only, or to fetch from the server only (though in the server only case, latency compensation is still enabled).
Diffstat (limited to 'Firestore/CHANGELOG.md')
-rw-r--r--Firestore/CHANGELOG.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/Firestore/CHANGELOG.md b/Firestore/CHANGELOG.md
index 9f53593..77d823a 100644
--- a/Firestore/CHANGELOG.md
+++ b/Firestore/CHANGELOG.md
@@ -24,6 +24,10 @@
`FIRServerTimestampBehavior` on `DocumentSnapshot`. Instead of calling
`data(SnapshotOptions.serverTimestampBehavior(.estimate))` call
`data(serverTimestampBehavior: .estimate)`. Changed `get` similarly.
+- [changed] Added ability to control whether DocumentReference.getDocument() and
+ Query.getDocuments() should fetch from server only, cache only, or attempt
+ server and fall back to the cache (which was the only option previously, and
+ is now the default.)
# v0.11.0
- [fixed] Fixed a regression in the Firebase iOS SDK release 4.11.0 that could