model/index.js
/**
		 * @param  Object	stgList		- keystone stage list
		 * @param  Object	prodList	- keystone prod list
		 * @param  String	populations - space deliniated field populations
		 * @return n/a
		 */
@param  Object       stgList         - keystone stage list
@param  Object       prodList        - keystone prod list
@param  String       populations - space deliniated field populations
@return n/a
@param Object stgList - keystone stage list @param Object prodList - keystone prod list @param String populations - space deliniated field populations @return n / a
addModelPopulations(stgList, prodList, populations) {
			function arcPopulate() {
				if (!populations) return this;
				else if (Array.isArray(populations)) {
					for (let i = 0, len = populations.length; i < len; i++) {
						this.populate(populations[i]);
					}
					return this;
				}
				return this.populate(populations);
			}
			stgList.schema.query.arcPopulate = arcPopulate;
			prodList.schema.query.arcPopulate = arcPopulate;
		}
addModelPopulations ( stgList , prodList , populations ) { function arcPopulate ( ) { if ( ! populations ) return this ; else if ( Array . isArray ( populations ) ) { for ( let i = 0 , len = populations . length ; i < len ; i ++ ) { this . populate ( populations [ i ] ) ; } return this ; } return this . populate ( populations ) ; } stgList . schema . query . arcPopulate = arcPopulate ; prodList . schema . query . arcPopulate = arcPopulate ; }
@param  Object       stgList         - keystone stage list
 @param  Object       prodList        - keystone prod list
 @param  String       populations - space deliniated field populations
 @return n/a
@param Object stgList - keystone stage list @param Object prodList - keystone prod list @param String populations - space deliniated field populations @return n / a