-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Compatibility with percolate:find-from-publication #98
Comments
Feel free to fork and modify this package however you see fit. |
EDIT: please my latter comment. The solution proposed there might be better suited for your case. If anyone wonders: I haven't written a PR, but just implemented in the way I wanted it to be. Take a look at this sample to get an idea of how it could work out for you 😉 Server:
Client:
|
Thanks @SimonSimCity Client
Server
|
The solution I suggested here is known to be very slow on low-power devices (tablets and phones), because you have to join the data on the client side - it seems quite Ok on a desktop PC though. Please take a look at this feature request and see if my work-around isn't suited and maybe faster for your use-case: meteor/meteor-feature-requests#183 |
I tried to wrap my head around how I could combine this library with the functionality of
percolate:find-from-publication
.The task of this plugin is to recognize, which publication was responsible for publishing an item - and also query items depending on which publication now published it to the client. In many cases, this is very convenient, since you now don't have to query another collection.
If this plugin would have a way to only return an object instead of a cursor at a
find()
method, I guess, would already be enough. I'd then create a new child-subscription and only return a self-created object which should be published to theMETADATA_COLLECTION
collection on the client.I hope you see what I want to archive 😉
It's mostly not to push items to a separate collection, but to identify the publication that published it.
By building a custom object for
METADATA_COLLECTION
, I could also work around the limitation, described here: http://braindump.io/meteor/2014/09/20/publishing-to-an-alternative-clientside-collection-in-meteor.html#comment-2211775496This is quite related to #28 ...
The text was updated successfully, but these errors were encountered: