How to Converting PHP YII framework Postgresql Query in Javascript
one text
This Is YII framework of PHP Can U Explain this to in JavaScript..
$trip_data = Trip::find()->where(['trip_id' => $trip_id])
->joinWith(['vehicle' => function($query) {
$query->select('vehicle_number,vehicle_type');
},
'vehicle.vehicleType' => function($query) {
$query->select('vehicle_type_code');
},
'shift' => function($query) {
$query->select('shift_name');
}])
->one();
Source