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

limit results #83

Closed
ghost opened this issue Nov 24, 2015 · 3 comments
Closed

limit results #83

ghost opened this issue Nov 24, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 24, 2015

Is it possible to limit results for a specific query?
Similar to .limitToLast() in the Firebase API

@jwngr
Copy link

jwngr commented Nov 24, 2015

The answer slightly depends on what you are asking. If you want the N closest points, you should read the discussion in #59. If you want any N points (not the N closest) within your query, then you can do this by just having a variable which counts the number of keys that have entered and turning off the query once the counter reaches N.

@jwngr jwngr closed this as completed Nov 24, 2015
@ghost
Copy link
Author

ghost commented Nov 24, 2015

Thanks!

@v1s10n-4
Copy link

v1s10n-4 commented Jul 7, 2018

the new turning off the query link

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