sequelize select and include another table alias
问题 I'm using sequelize to acess a postgres database and I want to query for a city and for example include the "Building" table but I want to rename the output to "buildings" and return the http response but I have this error: { SequelizeEagerLoadingError: building is associated to city using an alias. You'v e included an alias (buildings), but it does not match the alias defined in your a ssociation. City.findById(req.params.id,{ include: [ { model: Building, as: "buildings" } ] }).then(city =>