Modify instance without triggering lifecycles

Hi

How can I update an instance within a afterUpdate lifecycle without retriggering the afterUpdate livecycle indefinitely ?

The current (bad) code uses strapi.entityService.update() which obviously triggers the afterUpdate lifecycle. But if I try doing it in the database using strapi.db.query("api::thing.thing").update() it’s retriggered too.

I don’t really understand what’s the difference between strapi.entityService.update() and strapi.db.query("api::thing.thing").update().

Is there a way to modify my instance without triggerling lifecycles ?

This topic has been created from a Discord post (1230451362999828551) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord