How to prevent population on update?

async edit(params, values) {
    if (values.password) {
      values.password = await strapi.plugins['users-permissions'].services.user.hashPassword(
        values
      );
    }
    return strapi.query('user', 'users-permissions').update(params, values);
  },

Update method returns user which relations are populated. Because of this, I have to make an extra request to database to get not populated user. Is there a way to prevent populations on update method or should I stick to extra request?

1 Like