@@ -214,7 +214,7 @@ class QueryBuilder extends QueryBuilderBase {
214
214
const parsedExp = parseRelationExpression ( this . modelClass ( ) , exp ) ;
215
215
216
216
eagerOp . expression = eagerOp . expression . merge ( parsedExp ) ;
217
- eagerOp . eagerOptions = { ...eagerOp . eagerOptions , ...options } ;
217
+ eagerOp . graphOptions = { ...eagerOp . graphOptions , ...options } ;
218
218
219
219
checkEager ( this ) ;
220
220
return this ;
@@ -431,7 +431,7 @@ class QueryBuilder extends QueryBuilderBase {
431
431
432
432
_eagerOptions ( opt ) {
433
433
const eagerOp = ensureEagerOperation ( this ) ;
434
- eagerOp . eagerOptions = Object . assign ( { } , eagerOp . eagerOptions , opt ) ;
434
+ eagerOp . graphOptions = Object . assign ( { } , eagerOp . graphOptions , opt ) ;
435
435
return this ;
436
436
}
437
437
@@ -1235,7 +1235,7 @@ function getTableName(modelClassOrTableName) {
1235
1235
1236
1236
function ensureEagerOperation ( builder , algorithm = null ) {
1237
1237
const modelClass = builder . modelClass ( ) ;
1238
- const defaultEagerOptions = modelClass . defaultGraphOptions || modelClass . defaultEagerOptions ;
1238
+ const defaultGraphOptions = modelClass . getDefaultGraphOptions ( ) ;
1239
1239
const eagerOp = builder . findOperation ( EagerOperation ) ;
1240
1240
1241
1241
if ( algorithm ) {
@@ -1245,7 +1245,7 @@ function ensureEagerOperation(builder, algorithm = null) {
1245
1245
return eagerOp ;
1246
1246
} else {
1247
1247
const newEagerOp = new EagerOperationClass ( 'eager' , {
1248
- defaultEagerOptions
1248
+ defaultGraphOptions
1249
1249
} ) ;
1250
1250
1251
1251
if ( eagerOp ) {
@@ -1267,7 +1267,7 @@ function ensureEagerOperation(builder, algorithm = null) {
1267
1267
) ;
1268
1268
1269
1269
const newEagerOp = new EagerOperationClass ( 'eager' , {
1270
- defaultEagerOptions
1270
+ defaultGraphOptions
1271
1271
} ) ;
1272
1272
1273
1273
builder . addOperation ( newEagerOp ) ;
0 commit comments