Takes a Schema and text representing a GraphQL request document.
If the text parses correctly as a GraphQL query the query is
executed according to the given Schema.
Takes a Schema, a variable substitution function and text
representing a GraphQL request document. If the text parses
correctly as a GraphQL query the substitution is applied to the
query and the query is then executed according to the given Schema.