Sequlize how to do nested joins
问题 I have four models. namely images restaurant_items restaurant item images.belongsTo (restaurant_items) Which means I can get all the restaurant_items table details associated with the image like this, const all_approved_images = await db.images.findAll({ where: { status: "approved" }, include: ['res_item'] }) But I want to get the ITEM TABLE AND RESTAURANT TABLE details at the same time restaurant_items belongs to restaurant restaurant_items belongs to item I tried this const all_approved