Skip to content

Commit 9aafba5

Browse files
committed
Remove PageUnion, use PageInterfaceType instead.
1 parent 9436362 commit 9aafba5

File tree

5 files changed

+8
-52
lines changed

5 files changed

+8
-52
lines changed

src/Field/Page/PageNextField.php

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

55
use ProcessWire\GraphQL\Field\Page\AbstractPageField;
6-
use ProcessWire\GraphQL\Type\Union\PageUnion;
6+
use ProcessWire\GraphQL\Type\InterfaceType\PageInterfaceType;
77

88
class PageNextField extends AbstractPageField {
99

1010
public function getType()
1111
{
12-
return new PageUnion();
12+
return new PageInterfaceType();
1313
}
1414

1515
public function getName()

src/Field/Page/PageParentField.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\Union\PageUnion;
6+
use ProcessWire\GraphQL\Type\InterfaceType\PageInterfaceType;
77
use ProcessWire\GraphQL\Field\Traits\OptionalSelectorTrait;
88

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

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

1818
public function getName()

src/Field/Page/PagePrevField.php

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

55
use ProcessWire\GraphQL\Field\Page\AbstractPageField;
6-
use ProcessWire\GraphQL\Type\Union\PageUnion;
6+
use ProcessWire\GraphQL\Type\InterfaceType\PageInterfaceType;
77

88
class PagePrevField extends AbstractPageField {
99

1010
public function getType()
1111
{
12-
return new PageUnion();
12+
return new PageInterfaceType();
1313
}
1414

1515
public function getName()

src/Field/PageArray/PageArrayListField.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
use Youshido\GraphQL\Type\ListType\ListType;
66
use ProcessWire\GraphQL\Field\WireArray\WireArrayListField;
7-
use ProcessWire\GraphQL\Type\Union\PageUnion;
7+
use ProcessWire\GraphQL\Type\InterfaceType\PageInterfaceType;
88

99
class PageArrayListField extends WireArrayListField {
1010

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

1616
}

src/Type/Union/PageUnion.php

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)