Created
April 17, 2018 06:20
-
-
Save ryanmats/c2084909aca7bc0a84119438de18a438 to your computer and use it in GitHub Desktop.
Firestore Delete Collection Error Message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ryanmats-macbookpro:firestore ryanmats$ bundle exec ruby delete_data.rb delete_collection | |
Deleting document LA. | |
/Library/Ruby/Gems/2.3.0/gems/google-cloud-firestore-0.21.0/lib/google/cloud/firestore/document_reference.rb:420:in `delete': undefined method `batch' for #<Google::Cloud::Firestore::CollectionReference:0x007fd232adba90> (NoMethodError) | |
from delete_data.rb:70:in `block in delete_collection' | |
from /Library/Ruby/Gems/2.3.0/gems/google-cloud-firestore-0.21.0/lib/google/cloud/firestore/query.rb:556:in `block in get' | |
from /Library/Ruby/Gems/2.3.0/gems/grpc-1.11.0-universal-darwin/src/ruby/lib/grpc/generic/active_call.rb:331:in `block in each_remote_read_then_finish' | |
from /Library/Ruby/Gems/2.3.0/gems/grpc-1.11.0-universal-darwin/src/ruby/lib/grpc/generic/active_call.rb:325:in `loop' | |
from /Library/Ruby/Gems/2.3.0/gems/grpc-1.11.0-universal-darwin/src/ruby/lib/grpc/generic/active_call.rb:325:in `each_remote_read_then_finish' | |
from /Library/Ruby/Gems/2.3.0/gems/google-cloud-firestore-0.21.0/lib/google/cloud/firestore/query.rb:554:in `each' | |
from /Library/Ruby/Gems/2.3.0/gems/google-cloud-firestore-0.21.0/lib/google/cloud/firestore/query.rb:554:in `get' | |
from delete_data.rb:67:in `delete_collection' | |
from delete_data.rb:83:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment