如何使用过滤器从内部服务回调?

how do callback from internal service with filter?

一个帮助,同时使用另一个内部服务,例如:

await Promise.all (messages.map (async message => {
      // Also pass the original `params` to the service call
      // so that it has the same information available (e.g. who is requesting it)
      message.user = await app.service ('users'). get (message.userId, params);

    }));

我得到了所有的记录, 电子邮件、头像、_id。 我如何只收到电子邮件......?

谢谢

使用 query 中的 $selectfeathers select