title: How do I accept field arguments for a nested query in Graphql Ruby?
body: <p>I'm getting this error in GraphQl (Apollo JS/ Graphql Ruby):
  <code>Error Error: GraphQL error: Field 'pagination' doesn't accept argument 'pagination' GraphQL error: Variable $pagination is declared by Clients but not used. Reload the page and try again.</code></p>
  
  <p>I have this query:</p>
  
  <pre><code>query Clients($pagination: PaginationInput) {
    clients {
       data {
         ....Fragment
       }
       pagination(pagination: $pagination) {
         ....Fragment
       }
  
    }
  }
  
  </code></pre>
  
  <p>And I have this as my input type:</p>
  
  <pre><code>class PaginatedClientsType &lt; Types::BaseObject
     field :data, ...
     field :pagination, PaginationType ... do 
       argument :pagination, PaginationInput, required: false
     end
  end
  </code></pre>
  
  <p>And this in my <code>query_type.rb</code> file:</p>
  
  <pre><code>field :clients, ::Types::Paginated::ClientsType, null: false do
     argument :pagination, PaginationInput, required: false
  end
  
  def clients(pagination:)
    ...
  end
  
  // and i've added to no avail:
  field :pagination ... do
     argument :pagination, PaginationInput, required: false
  end
  def pagination(pagination:)
  ...
  end
  </code></pre>
  
  <p>Any ideas on how I can pass the argument to something other than this top level <code>client</code>? 
  I've read docs <a href="https://github.com/rmosolgo/graphql-ruby/blob/master/guides/fields/introduction.md" rel="nofollow noreferrer">here</a> but can't figure it out.</p>
  
  <p>Thanks!</p>