【发布时间】:2016-09-06 06:38:07
【问题描述】:
我正在关注the tutorial。在Asynchronous hooks,有这样一个sn-p:
todoService.before({
find(hook) {
return this.find().then(data => {
hook.params.message = 'Ran through promise hook';
hook.data.result = data;
// Always return the hook object
return hook;
});
}
});
请告诉我this.find() 应该做什么?
【问题讨论】:
标签: feathersjs