Search code examples
strapi

My relationships are missing in strapi model afterCreate


I have created a model with a relationship to another model.

I want to send an email with the entry information, afterCreate seems like the place to do so. But it doesn't contain my relationship fields on the model object.


Solution

  • As of Strapi 3.0.0, the model lifecycles have changed and now afterCreate does contain relationships.