Skip to content

Commit 55c8877

Browse files
committed
User PageInterfaceType instaead of PageType.
1 parent 9aafba5 commit 55c8877

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Field/Page/PageChildField.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace ProcessWire\GraphQL\Field\Page;
44

55
use Youshido\GraphQL\Field\AbstractField;
6-
use ProcessWire\GraphQL\Type\Object\PageType as PageObjectType;
6+
use ProcessWire\GraphQL\Type\InterfaceType\PageInterfaceType;
77
use ProcessWire\GraphQL\Field\Traits\OptionalSelectorTrait;
88

99
class PageChildField extends AbstractField {
@@ -12,7 +12,7 @@ class PageChildField extends AbstractField {
1212

1313
public function getType()
1414
{
15-
return new PageObjectType();
15+
return new PageInterfaceType();
1616
}
1717

1818
public function getName()

src/Field/Page/PageRootParentField.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
namespace ProcessWire\GraphQL\Field\Page;
44

55
use Youshido\GraphQL\Type\NonNullType;
6-
use ProcessWire\GraphQL\Type\Object\PageType as PageObjectType;
6+
use ProcessWire\GraphQL\Type\InterfaceType\PageInterfaceType;
77
use ProcessWire\GraphQL\Field\Page\AbstractPageField;
88

99
class PageRootParentField extends AbstractPageField {
1010

1111
public function getType()
1212
{
13-
return new NonNullType(new PageObjectType());
13+
return new NonNullType(new PageInterfaceType());
1414
}
1515

1616
public function getName()

0 commit comments

Comments
 (0)