MCPcopy Index your code
hub / github.com/Vincit/objection.js / getOperationClassForEagerAlgorithm

Function getOperationClassForEagerAlgorithm

lib/queryBuilder/QueryBuilder.js:1011–1019  ·  view source on GitHub ↗
(builder, algorithm)

Source from the content-addressed store, hash-verified

1009}
1010
1011function getOperationClassForEagerAlgorithm(builder, algorithm) {
1012 if (algorithm === getJoinEagerAlgorithm(builder)) {
1013 return JoinEagerOperation;
1014 } else if (algorithm === getNaiveEagerAlgorithm(builder)) {
1015 return NaiveEagerOperation;
1016 } else {
1017 return WhereInEagerOperation;
1018 }
1019}
1020
1021function parseRelationExpression(modelClass, exp) {
1022 try {

Callers 1

ensureEagerOperationFunction · 0.85

Calls 2

getJoinEagerAlgorithmFunction · 0.85
getNaiveEagerAlgorithmFunction · 0.85

Tested by

no test coverage detected