【发布时间】:2018-11-24 00:28:50
【问题描述】:
更新属性时,我有一个 beforeRemote 方法。我在 context.args.include 中包含了一个关系,但返回的结果不包括该关系。这是一个示例代码
Assessment.beforeRemote('prototype.updateAttributes', function(context, data, next){
context.args.include = ['images'];
next();
});
我做错了什么?返回的结果中不包含“images”属性。
【问题讨论】: