Update objects based on nested objects’ fields

Ok, so just to be super clear - I want to update the detector, i.e. set Detector.disabled to true conditionally, and the condition is based on a field of the Account object referenced by the Detector, ie. Detector.account.idFromSource == "some-id"

Thx for following up