Google-cloud-ruby: Firestore Delete Collection Error

Created on 17 Apr 2018  路  5Comments  路  Source: googleapis/google-cloud-ruby

Hi! I'm trying to run a piece of code to delete all documents in a Firestore collection. Here is the code I'm using.

However, when I run this, I get this error message. (Note that line 70 in the error message corresponds to line 10 in the gist).

I have been able to get basic deletion of a single document working using this code.

Thanks!

firestore bug

Most helpful comment

Sorry, I didn't realize these changes were still unreleased. This is released in google-cloud-firestore 0.21.1.

All 5 comments

Thanks, I'll look at this today.

Thank you for the fix, can you do a release for this fix? We're encountering the same bug and specifying github repo with master branch in Gemfile doesn't pull this fix :(

Sorry, I didn't realize these changes were still unreleased. This is released in google-cloud-firestore 0.21.1.

hey @blowmage ! Thanks for updating the library.

One small issue is that I'm getting a warning message when I run my code (although it is working fine). Any idea what this may be?

Key :firestore already exists. It will be replaced. at /Library/Ruby/Gems/2.3.0/gems/google-cloud-firestore-0.21.1/lib/google-cloud-firestore.rb:111:in `

Are you doing any custom configuration? If so, you鈥檒l want to require the gem before you perform the configuration

Was this page helpful?
0 / 5 - 0 ratings