db.getCollection('params').find({params: {$elemMatch : {scheduler_settings:{$ne:[]}}}})
Params::find()->where([
'params' => [
'$elemMatch' => [
'scheduler_settings' => '{$ne:[]}'
]
]
])->all();
Params::findAll('{params: {$elemMatch : {scheduler_settings:{$exists:true}}}}');