i want to compare column of other table in join sequelize for example: there are 3 tables named: Vehicle, Type, Car
vehicle is related to Type and Car. i want to get result from Car table if Type.type='Car'
how to query this in sequelize
what i have done is:
models.Vehicle.findAll({ include:[{model:models.Type},{model:models.Car}]});
via Ranjeet Avghad
No comments:
Post a Comment