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

Receive only added documents #39

Open
DooDiddle opened this issue May 18, 2019 · 0 comments
Open

Receive only added documents #39

DooDiddle opened this issue May 18, 2019 · 0 comments

Comments

@DooDiddle
Copy link

Hello,

I'd like to be able to receive an update only if a point has entered my radius. In other words, if an item has exited, position has changed, or has been deleted, I don't want to get an update event for that. In addition, I only want to receive those items that have entered, not the whole list of items. Right now, I tried something like the examples:
points.subscribe(x => {console.log(x)})
But here x gives me the entire list every time anything changed. How can I
1-) receive an update only if an item has entered
2-) get a list of only those items that have entered.

Thank you

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

No branches or pull requests

1 participant