Skip to content

Commit

Permalink
chore(firestore): update region tag to be consistent with other langu…
Browse files Browse the repository at this point in the history
…ages (#7852)
  • Loading branch information
Graham Paye committed Oct 1, 2020
1 parent 77a6d13 commit 39b94a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google-cloud-firestore/samples/query_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ def in_query_with_array project_id:, collection_path: "cities"
# collection_path = "cities"

firestore = Google::Cloud::Firestore.new project_id: project_id
# [START fs_in_filter_with_array]
# [START fs_query_filter_in_with_array]
cities_ref = firestore.col collection_path
exactly_one_cost = cities_ref.where "regions", "in", [["west_coast"], ["east_coast"]]
# [END fs_in_filter_with_array]
# [END fs_query_filter_in_with_array]
exactly_one_cost.get do |city|
puts "Document #{city.document_id} returned by query in [['west_coast'], ['east_coast']]."
end
Expand Down

0 comments on commit 39b94a7

Please sign in to comment.