What is the general consensus about wrapping things like MongoDB queries and other common functions into a custom functions specific to your own project so it’s easier to use? Where would be a good place to store it in the latest versions of Meteor (v. 1.4+)? Like setting up certain queries with multiple Mongo operators in just 1 function via prototypes vs. typing the whole thing over and over again.
I used several wrapped functions in old Meteor (1.0+) and placed them all as global functions in the lib folder. I’m assuming in the latest versions of Meteor, it would be contained in the
/imports folder and imported to client?