title: graphql using nested query arguments on parent or parent arguments on nested query
body: <p>I have a product and items</p>
  
  <p>Product:</p>
  
  <pre><code>{
    id: Int
    style_id: Int
    items: [items]
  }
  </code></pre>
  
  <p>Items:</p>
  
  <pre><code>{
    id: Int
    product_id: Int
    size: String
  }
  </code></pre>
  
  <p>I want to query products but only get back products that have an item with a size.</p>
  
  <p>So a query could look like this:</p>
  
  <pre><code>products(size: ["S","M"]) {
    id
    style_id
    items(size: ["S","M"]) {
      id
      size
    }
  }
  </code></pre>
  
  <p>But it seems like there should be a way where I can just do</p>
  
  <pre><code>products {
    id
    style_id
    items(size: ["S","M"]) {
      id
      size
    }
  }
  </code></pre>
  
  <p>And in the resolver for the products I can grab arguments from the nested query and use them.  In this case add the check to only return products that have those sizes.  This way I have the top level returned with pagination correct instead of a lot of empty products.</p>
  
  <p>Is this possible or atleast doing it the other way around:</p>
  
  <pre><code>products(size: ["S","M"]) {
    id
    style_id
    items {
      id
      size
    }
  }
  </code></pre>
  
  <p>And sending the size argument down to the items resolver?  Only way I know would be through context but the one place I found this they said that it is not a great idea because context spans the full query in all depths.</p>