chore(firestore): Add query watch samples#7602
Conversation
|
Regarding the region tag |
|
@schmidt-sebastian @dazuma The google-cloud-firestore Ruby client does not report errors from watch threads. Other clients in google-cloud-ruby, such as those for debugger, error_reporting, logger, pubsub, etc) do accept |
We do need to raise errors as not all backend errors are handled transparently. |
56e194c to
cd7a423
Compare
|
This PR should wait for #7811. |
cd7a423 to
668d8f0
Compare
|
@schmidt-sebastian @dazuma This PR is ready for review. |
schmidt-sebastian
left a comment
There was a problem hiding this comment.
Some comments to prove that I don't understand Ruby :)
dazuma
left a comment
There was a problem hiding this comment.
Looks great overall. Just a couple nits and questions.
64d3507 to
e351021
Compare
| firestore = Google::Cloud::Firestore.new project_id: project_id | ||
| # [START fs_listen_multiple] | ||
| query = firestore.col(collection_path).where :state, :==, "CA" | ||
| snapshots = [] |
Known region tags:
fs_listen_changesfs_listen_documentfs_listen_errorsfs_listen_multiplecloses: #7595