templates/advanced/api/blueprints/_util/actionUtil.js
function ( query, associations ) {
		_.each( associations, function ( assoc ) {
			// if the associations is to be populated with the full records...
			if ( assoc.include === "record" ) query.populate( assoc.alias );
		} );
		return query;
	}
function ( query, associations ) {
		_.each( associations, function ( assoc ) {
			// if the associations is to be populated with the full records...
			if ( assoc.include === "record" ) query.populate( assoc.alias );
		} );
		return query;
	}
function ( query , associations ) { _ . each ( associations , function ( assoc ) { // if the associations is to be populated with the full records... if ( assoc . include === "record" ) query . populate ( assoc . alias ) ; } ) ; return query ; }
helper function to populate a Waterline query according to the model definition include -> record
@param  {[type]} query        [description]
@param  {[type]} associations [description]
@return {[type]}              [description]
helper function to populate a Waterline query according to the model definition include - > record