We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cf5c40 commit b9eb7cdCopy full SHA for b9eb7cd
src/Field/Debug/DbQueryCountField.php
@@ -3,6 +3,7 @@
3
namespace ProcessWire\GraphQL\Field\Debug;
4
5
use Youshido\GraphQL\Field\AbstractField;
6
+use Youshido\GraphQL\Type\NonNullType;
7
use Youshido\GraphQL\Type\Scalar\IntType;
8
use Youshido\GraphQL\Execution\ResolveInfo;
9
@@ -13,9 +14,14 @@ public function getName()
13
14
return 'dbQueryCount';
15
}
16
17
+ public function getDescription()
18
+ {
19
+ return 'The total number of queries to database made to fulfill this request.';
20
+ }
21
+
22
public function getType()
23
{
- return new IntType();
24
+ return new NonNullType(new IntType());
25
26
27
public function resolve($value, array $args, ResolveInfo $info)
0 commit comments