meteor-tabular
meteor-tabular copied to clipboard
publish composite with extra conditions for other collection
I have defined one Tabular with selector and its working fine.
Now I want to add date range selection, and based on the date range selection I want to publish data from other collection.
so how I can pass date range in publish composite?
Thanks Nitesh
Maybe use a reactive client side selector (https://github.com/aldeed/meteor-tabular#displaying-only-part-of-a-collections-data-set) that returns {selectedDate: 'foo'}
and then in your custom publish function, grab that value off the selector and then delete it from the selector before you pass it to the main collection find.