Skip to content

Commit 9069fc1

Browse files
SobakMikk Mihkel Nurges
authored andcommitted
Do not use calls deprecated upstream (#142)
1 parent d8dace9 commit 9069fc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Rebing/GraphQL/GraphQL.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use GraphQL\Error\Error;
44
use Rebing\GraphQL\Error\ValidationError;
55
use GraphQL\GraphQL as GraphQLBase;
6-
use GraphQL\Schema;
6+
use GraphQL\Type\Schema;
77
use GraphQL\Type\Definition\ObjectType;
88
use Rebing\GraphQL\Events\SchemaAdded;
99
use Rebing\GraphQL\Exception\SchemaNotFound;
@@ -115,7 +115,7 @@ public function queryAndReturnResult($query, $params = [], $opts = [])
115115

116116
$schema = $this->schema($schemaName);
117117

118-
$result = GraphQLBase::executeAndReturnResult($schema, $query, null, $context, $params, $operationName);
118+
$result = GraphQLBase::executeQuery($schema, $query, null, $context, $params, $operationName);
119119
return $result;
120120
}
121121

0 commit comments

Comments
 (0)