This of course does not work.
The straightforward solution would be to use a switch statement with different queries, but that seems kind of ugly.
Any suggestions for a more elegant approach?
So what exactly worked? I’m not sure where to put the tracker, and I’m getting errors if I don’t have random reactive vars and sessions in my events and helper
Apparently you’d use tracker outside the helpers- as those are reactive-, but neither method appears to work. There’s also subscription method that you could run where publish takes parameter of the field, but I doubt that it will really translate into your db.collection.find() helper, although that would be the more to the point method.