Skip to content

Commit b9eb7cd

Browse files
committed
Add descriptiotn to dbQueryCount & make it non-null.
1 parent 3cf5c40 commit b9eb7cd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Field/Debug/DbQueryCountField.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace ProcessWire\GraphQL\Field\Debug;
44

55
use Youshido\GraphQL\Field\AbstractField;
6+
use Youshido\GraphQL\Type\NonNullType;
67
use Youshido\GraphQL\Type\Scalar\IntType;
78
use Youshido\GraphQL\Execution\ResolveInfo;
89

@@ -13,9 +14,14 @@ public function getName()
1314
return 'dbQueryCount';
1415
}
1516

17+
public function getDescription()
18+
{
19+
return 'The total number of queries to database made to fulfill this request.';
20+
}
21+
1622
public function getType()
1723
{
18-
return new IntType();
24+
return new NonNullType(new IntType());
1925
}
2026

2127
public function resolve($value, array $args, ResolveInfo $info)

0 commit comments

Comments
 (0)