Thats because you are using it wrong, you just created loop. This updates entry in collection type and it triggers lifecycle hooks: strapi.query(‘api::article.article’).update({id: 4},{title:“cccccc”});
beforeUpdate(event) {
console.log(event);
event.params.title='ccccc';
}
Something like this, check console.log output