lib/queryBuilder/join/utils.js
function forEachChildExpression(expr, modelClass, callback) {
  if (expr.node.$allRecursive || expr.maxRecursionDepth > RELATION_RECURSION_LIMIT) {
    throw modelClass.createValidationError({
      type: ValidationErrorType.RelationExpression,
      message: `recursion depth of eager expression ${expr.toString()} too big for JoinEagerAlgorithm`
    });
  }

  expr.forEachChildExpression(modelClass, callback);
}
function forEachChildExpression(expr, modelClass, callback) {
  if (expr.node.$allRecursive || expr.maxRecursionDepth > RELATION_RECURSION_LIMIT) {
    throw modelClass.createValidationError({
      type: ValidationErrorType.RelationExpression,
      message: `recursion depth of eager expression ${expr.toString()} too big for JoinEagerAlgorithm`
    });
  }

  expr.forEachChildExpression(modelClass, callback);
}
function forEachChildExpression ( expr , modelClass , callback ) { if ( expr . node . $allRecursive || expr . maxRecursionDepth > RELATION_RECURSION_LIMIT ) { throw modelClass . createValidationError ( { type : ValidationErrorType . RelationExpression , message : ` ${ expr . toString ( ) } ` } ) ; } expr . forEachChildExpression ( modelClass , callback ) ; }
Given a relation expression, goes through all first level children.
Given a relation expression goes through all first level children .