π Using createMany with Model Hooks and Transactions in AdonisJS 5
While working with AdonisJS 5, I ran into an interesting situation that every developer should be aware of when using createMany() in combination with model hooks.
In short: when using afterCreate hooks with createMany(), always pass the transaction ...
adonisjs-19.hashnode.dev3 min read