渴望在SequelizeJS中加载

时间:2014-12-23 12:28:32

标签: node.js sequelize.js

我想在我的应用程序中使用Eager加载。

db.Shop.findAll({where:{id:shopId},{ include: [ db.ShopTranslation ] })
.then(function(s) {
    res.jsonp(s);
});

我编写了上面的代码,但它不包括ShopTranslation。我相信我的模特是对的。

0 个答案:

没有答案