-
Notifications
You must be signed in to change notification settings - Fork 37
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
Subscriptions with $contains and $search are not reactive #53
Comments
Only the official query syntax is supported. |
To get updates for queries with those parameters the |
The official query syntax does not work for me. For example $gt and $gte
This is not reactive - without the $gte it is reactive |
@DominikTrenz This is unfortunately not enough information to reproduce and should also probably be a separate issue. |
#62 I created a new issue. Please let me know if you need more information |
#97 adds the ability to add custom sift expressions which allows to implement non-standard special keywords: const feathersRx = require('feathers-reactive');
feathersRx.sift.use({
$search(a, b) {
return (a & b) ? 0 : -1; // 0 = exists, -1 = doesn't exist
}
}); |
Awesome! An elegant solution! Thanks, @daffl |
Steps to reproduce
Subscribe to a service, using a
$search
query:app.service('/service').find({ query: { firstName: { $search: '^james' } } }).subscribe(callback)
Expected behavior
The client receives updates when a document is added/removed/changed that matches the query
Actual behavior
The client does not receive the update
Upon calling the initial registration of the subscription, all data is returned as expected. But, the subscription isn't reactive — so we don't receive any more data.
The text was updated successfully, but these errors were encountered: