feat: Implement getStepWithTestExecutions query

This commit is contained in:
Faruk AYDIN
2022-02-22 02:04:12 +03:00
committed by Ali BARIN
parent 98864ceadd
commit d139eb8c06
9 changed files with 112 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
import Base from './base';
import Execution from './execution';
import Step from './step';
class ExecutionStep extends Base {
id!: string;
@@ -33,6 +34,14 @@ class ExecutionStep extends Base {
to: 'executions.id',
},
},
step: {
relation: Base.BelongsToOneRelation,
modelClass: Step,
join: {
from: 'execution_steps.step_id',
to: 'steps.id',
},
},
});
}