Entonces, quiero adjuntar una URL a mis solicitudes de usuario que se encuentra en otro servicio. ¿Cómo personalizar la solicitud de obtención?
const { Service } = require('feathers-sequelize') exports.Users = class Users extends Service { get(id, params) { // how to add custom data into to the get result? return super.get(id, params) } }Recuperas el valor de super y devuelves un nuevo objeto:
const { Service } = require('feathers-sequelize') exports.Users = class Users extends Service { async get(id, params) { // how to add custom data into to the get result? const data = await super.get(id, params) return { ...data, // when using raw: false: // ...data.toJSON(), message: 'New data here' } } }