-
Notifications
You must be signed in to change notification settings - Fork 58
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
Returning a Collection of key, location and distance #5
Comments
Unfortunately the answer would be no. The library is based off of the official firebase Then as the |
Here's my ugly solution. I create a promise with a timer that cancels the query and resolves in 10000ms. It needs work, but it my most reliable solution so far, and my function currently returns data for a location with 21 documents in about 1600ms (3700ms on a cold start), and for a location with 0 documents in about 1100ms.*
*edit: Times when testing functions locally in functions shell. |
What if you need to do another Firestore database call within the key_entred event? How do u suggest we do this. |
I want to wrap your library in a google cloud function and return an array with the results to the client.
I do the following setup.
Is there any way to get the result, instead of waiting for all onKeyEnteredRegistration Events?
I need to do a
response.send(results)
, but I Do not know which is the last item of the result set.I had tried to put the
response.send()
inside theonReadyRegistration
, but it happens sometimes before receiving all events inonKeyEnteredRegistration
;Any guidance appreciated.
The text was updated successfully, but these errors were encountered: