meteor-tabular icon indicating copy to clipboard operation
meteor-tabular copied to clipboard

publish composite with extra conditions for other collection

Open Nits7029 opened this issue 8 years ago • 1 comments

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

Nits7029 avatar Oct 14 '16 12:10 Nits7029

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.

aldeed avatar Oct 30 '16 23:10 aldeed