public function testUsesTheQuerySchemaForQueries()
{
$doc = 'query Q { a } mutation M { c }';
$data = ['a' => 'b', 'c' => 'd'];
$ast = Parser::parse($doc);
$schema = new Schema(['query' => new ObjectType(['name' => 'Q', 'fields' => ['a' => ['type' => Type::string()]]]), 'mutation' => new ObjectType(['name' => 'M', 'fields' => ['c' => ['type' => Type::string()]]])]);
$queryResult = Executor::execute($schema, $ast, $data, null, [], 'Q');
$this->assertEquals(['data' => ['a' => 'b']], $queryResult->toArray());
}