System Information
- Strapi Version: 4.12.5
- Operating System: macOS 14.1.1
- Database: PostgreSQL
- Node Version: 18.17.1
- NPM Version: 9.6.7
- Yarn Version: 1.22.19
How can I populate the relations in afterUpdate lifecycle hook to let the response object be populated?
Right now this is what I am getting in the response:
"user": {
"count": 1
},
"subscriptionType": {
"count": 1
}
When I console.log the event
in afterUpdate
I actually noticed that event.result
property contains user
and subscriptionType
populated, then why I don’t receive them like so? Is this a bug or what should I do to make it work?