title: Is there a way to convert a graphql query string into a GraphQLResolveInfo object?
body: <p>I have written a piece of software that parses and formats the fourth parameter of a graphql resolver function (the info object) to be used elsewhere. I would like to write unit tests for this software. Specifically, I do not want to build the <code>GraphQLResolveInfo</code> object myself, because doing that would be very cumbersome, error-prone and hard to maintain. Instead, I want to write human-readable query strings and convert them to <code>GraphQLResolveInfo</code> objects so I can pass those to my software.</p>
  
  <p>After extensive googling and reading of the <code>graphql-js</code> source code, I have not found a simple way to do what they are doing internally. I'm really hoping that I am missing something.</p>
  
  <p>What I am not trying to do is use the <code>graphql-tag</code> library, because that just generates an AST which has a very different format from the <code>GraphQLResolveInfo</code> type.</p>
  
  <p>Has anyone done this before? Help would be much appreciated!</p>