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

Several live queries whitin one Scheme and live query change? #107

Open
serzhiio opened this issue Dec 18, 2018 · 1 comment
Open

Several live queries whitin one Scheme and live query change? #107

serzhiio opened this issue Dec 18, 2018 · 1 comment

Comments

@serzhiio
Copy link

Lets say i have Planets scheme and i have two live quersies one with .limit() and one just returning it all.
How to catch live changing of particular query? is it possible?
And is it possible to change live query parameters when it is already .live()?

@Ivshti
Copy link
Owner

Ivshti commented Dec 19, 2018

the first argument of the liveQueryUpdate event is the query, so figuring out which one should be easy:

self.db.emit("liveQueryUpdate", self.query);

and regarding the change, I think it's possible but you'd have to find how in the tests

p.s. even though the API of this module is pretty convenient, the module itself is unfortunately unsupported; also unfortunately, I cannot think of any alternatives

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

2 participants