Graphql Validate data resultset

For a spring-boot graphql application, if we want to apply multiple validations with [AND , OR] combination on the resultset fetched from the respository class, what are the different approaches we can take?