How do I add a condition to a standard model search?

My graphql.schema describes search queries (pagination, search by ID, etc.), but in addition to that I need to check some more conditions, for example, in my database there is a field containing information about whether a record has been deleted or not, i.e. I am not actually deleting the records, but just overwriting the value of that field.