firestore client: breaking change

21 views
Skip to first unread message

Jonathan Amsterdam

unread,
Sep 12, 2018, 10:41:37 AM9/12/18
to google-api-...@googlegroups.com
We just submitted https://code-review.googlesource.com/c/gocloud/+/31691, which is a breaking change to cloud.google.com/go/firestore.

Before this change, QuerySnapshotIterator.Next returned a DocumentIterator containing the result for the current query snapshot. Other properties of the snapshot, like the list of changes and the result size, were fields of the QuerySnapshotIterator value. This split between the query results and the other properties was confusing.

In this change, QuerySnapshotIterator.Next returns a QuerySnapshot value which holds everything about the snapshot. See this example for usage.

If you work at head with GOPATH and "go get -u", you'll see this change the next time you update. Otherwise, you'll see this change the next time we do a release.
Reply all
Reply to author
Forward
0 new messages