title: GraphQL pass args to sub resolve
body: <p>I have a relationship between User and Post. This is how I query the User Posts.</p>
  
  <pre><code>const UserType = new GraphQLObjectType({
    name: 'User'
    fields: () =&gt; ({
      name: {
        type: GraphQLString
      },
      posts: {
        type: new GraphQLList(PostType),
        resolve(parent, args , { db }) {
          // I want to get here the args.someBooleanArg
          return someLogicToGetUserPosts();
        }
      }
    })
  });
  </code></pre>
  
  <p>The main query is:</p>
  
  <pre><code>const queryType = new GraphQLObjectType({
    name: 'RootQuery',
    fields: {
      users: {
        type: new GraphQLList(UserType),
        args: {
          id: {
            type: GraphQLInt
          },
          someBooleanArg: {
            type: GraphQLInt
          }
        },
        resolve: (root, { id, someBooleanArg }, { db }) =&gt; {
          return someLogicToGetUsers();
        }
      }
    }
  });
  </code></pre>
  
  <p>The problem is the args in the resolve function of the UserType posts is empty object, how do i pass the args from the main query to sub resolves functions?</p>