title: In GraphQL/Rails how to pass arguments in the query_type?
body: <p>So I'm trying to query on a single user within the database but end up getting:</p>
  
  <pre><code>"Field 'userSingle' doesn't accept argument 'first_name'"
  </code></pre>
  
  <p>I'm getting that in GraphiQL when I run the following query:</p>
  
  <pre><code>query GetSingleUser {
   userSingle(first_name: "Test"){
    first_name
    last_name
   }
  } 
  </code></pre>
  
  <p>In my query_type.rb I have the following:</p>
  
  <pre><code>field :userSingle, !types[Types::UserType] do
   resolve -&gt; (obj, args, ctx) {
   argument :first_name, !types.String
   argument :id, types.ID
   User.find(id: args[:id])}
  end
  </code></pre>
  
  <p>Originally I had:</p>
  
  <pre><code>field :userSingle, !types[Types::UserType] do
    resolve -&gt; (obj, args, ctx) {User.find(id: args[:id])}
  end
  </code></pre>
  
  <p>Same issue. If I take out the id: same issue. Also the same issue with:</p>
  
  <pre><code>  field :userSingle, !types[Types::UserType] do
      resolve -&gt; (obj, args, ctx) {
      argument :first_name, !types.String
      argument :id, types.ID
        user = User.find_by(
          id: args[:id],
          first_name: args[:first_name])
      }
    end
  </code></pre>