0

I have a query made through the filter on multiple models in cascade. I would like to use a column of the first level (ModelA) in the where conditions of the underlying levels, is it possible?

example:

const customFilter = {
    
        include:[{
            {
             relation: 'modelB',
             scope:{
                where: _this_condition_with_column_of_modelA_
             }
        }]
}
this.repository.find(customFilter) // repository on modelA
Laurel
  • 5,965
  • 14
  • 31
  • 57
legolas82
  • 13
  • 1

0 Answers0