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

Example how to use Firebase Queries #66

Closed
ilionic opened this issue Jun 29, 2015 · 1 comment
Closed

Example how to use Firebase Queries #66

ilionic opened this issue Jun 29, 2015 · 1 comment

Comments

@ilionic
Copy link

ilionic commented Jun 29, 2015

Based on Docs:
'With the release of GeoFire 3.1.0, this library now uses the new query functionality found in Firebase 2.0.0.'
In particular I am interested in limitToLast query found in Firebase with expected usage:

geoFireRef.limitToLast(2).on("key_entered", function(key, location, distance) { ...

But it throws an error TypeError: geoFireRef.limitToLast is not a function
Is it possible to use Firebase queries in GeoFire?

@jwngr
Copy link

jwngr commented Jun 29, 2015

That sentence in the docs refers to how GeoFire functions "under the hood," so to speak. GeoFire internally uses Firebase queries. It still doesn't have an API to limit to a certain number of results, although you can pretty easily get this functionality with little to no performance loss. Check out issues #59 for some ways to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants