firebase icon indicating copy to clipboard operation
firebase copied to clipboard

Feature request - Firestore

Open fsty opened this issue 2 years ago • 8 comments

Hello! There is any plan to add support for Firestore database ?

fsty avatar Mar 07 '22 21:03 fsty

Sorry, only just saw this. The support for Firestore is difficult to integrate with R given how it works. I tried, it's not impossible but makes for a very ugly API

JohnCoene avatar Oct 05 '22 18:10 JohnCoene

Sorry, only just saw this. The support for Firestore is difficult to integrate with R given how it works. I tried, it's not impossible but makes for a very ugly API

It would be awesome if firestore feature is available even with an ugly API. Thanks for your package.

udurraniAtPresage avatar Sep 19 '23 20:09 udurraniAtPresage

Have you thought about integrating something like this: https://gabrielcp.medium.com/introduction-to-working-with-firestore-in-r-99443489b01b ?

emillykkejensen avatar Nov 03 '23 10:11 emillykkejensen

Have you thought about integrating something like this: https://gabrielcp.medium.com/introduction-to-working-with-firestore-in-r-99443489b01b ?

Yes, I have used the functions from that post and also wrote my own for query filtering. It would be awesome if {firebase} also has these available.

durraniu avatar Nov 03 '23 11:11 durraniu

The issue is not technical but how we manage to nicely wrap the query API.

We cannot do HTTP requests, {firebase} is all based on the official JavaScript SDK's and I think it should remain like this.

If you anyone has anything to propose in that regard it is more than welcome,

e.g.: take a look at this, I think it shows some of the complexities I hint at.

We need an R API not just around R/shiny (sendCustomMessage) we need to map the firestore ORM in R, and that's a lot of work I'm not sure where to start.

JohnCoene avatar Nov 03 '23 13:11 JohnCoene

I understand. I'd love to contribute but I have little to no experience with JavaScript.

I guess the best way to go is to use the Cloud Firestore REST API using {httr} as I am doing now.

Thank you for your thorough response.

udurraniAtPresage avatar Nov 03 '23 13:11 udurraniAtPresage

Initial work on firestore support on a new branch

remotes::install_github("JohnCoene/firebase@firestore")

See this document if you want to try

JohnCoene avatar May 20 '24 21:05 JohnCoene

This is really cool, thanks @JohnCoene.

I understand that {firebase} won't use HTTP requests. So, if anyone else is interested, I authored this package based on Firestore REST API: https://github.com/Presage-Group/frstore

But {firebase} native solution for Firestore will be awesome.

durraniu avatar May 20 '24 22:05 durraniu