title: GraphQL Spring-boot Query filtering
body: <p>I'm using the GraphQL Spring-boot library to build a GraphQL API
  <a href="https://github.com/graphql-java/graphql-spring-boot" rel="nofollow noreferrer">https://github.com/graphql-java/graphql-spring-boot</a></p>
  
  <p>I have a schema</p>
  
  <pre><code>type Car {
      id: ID!
      model: String
      brand: String
  }
  
  type Query {
      allCars: [Car]!
  }
  </code></pre>
  
  <p>And my query is implemented in a Query class in my Spring Boot project</p>
  
  <pre><code>@Component
  public class Query implements GraphQLQueryResolver {
  
  public List&lt;Machine&gt; allCars() {}
  
  }
  </code></pre>
  
  <p>My question is:</p>
  
  <p>How do I use filters and sorting when returning lists:</p>
  
  <pre><code>allCars(first:3){id model}
  
  allCars(filter: {....}){}
  </code></pre>
  
  <p>I guess this is something that has to be implemented in the Java method, but i'm unsure how to inject the filters etc. in the method.</p>