Search code examples
feathersjs

how do callback from internal service with filter?


a help, while consuming another internal service eg:

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);

    }));

I get all the records, email, avatar, _id. How do I get only email back ...?

tks


Solution

  • Use the $select in query. feathers select