Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Batch Data Management #201

Open
Zarasan opened this issue May 26, 2021 · 2 comments
Open

[FEATURE REQUEST] Batch Data Management #201

Zarasan opened this issue May 26, 2021 · 2 comments
Labels
enhancement New feature or request Hacktoberfest

Comments

@Zarasan
Copy link
Contributor

Zarasan commented May 26, 2021

Is your feature request related to a problem? Please describe.
I would like to change data for every document that has same value

Describe the solution you'd like
https://firebase.google.com/docs/firestore/reference/rest/v1/projects.databases.documents/batchWrite
I saw that they have Batch Write in the REST API maybe it could be implemented.

Describe alternatives you've considered
I have tried doing a cloud function for that call but problem is that it can be accessed from everywhere.

Additional context
I tried to implement but I am not that experienced in depth with the plugin or firebase REST API. If I could get some tips I could try again

@Zarasan Zarasan added the enhancement New feature or request label May 26, 2021
@WolfgangSenff
Copy link
Collaborator

We can probably implement this pretty easily. At the moment, I'm preparing a talk for GodotCon so cannot look into this, but we'll keep it open until we have time. Good suggestion!

@Zarasan
Copy link
Contributor Author

Zarasan commented Jul 8, 2021

Batch Get is easily implementable, I will put up a pr for it with my implementation soon.
But Batch Write has some issues with it where it doesn't give me permission outside of their API explorer (can only give permission if it has oauth2), so I switched to implementing commit instead of Batch Write.

https://stackoverflow.com/questions/63451909/firestore-rest-api-batchwrite-permission-denied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants