How to update when field xyz="something" on graphql queries instead of updating by id

Can you give a barebones example of customizing the resolver in the ‘strapi way’, so that it answers the question?