File tree Expand file tree Collapse file tree 5 files changed +8
-52
lines changed
Expand file tree Collapse file tree 5 files changed +8
-52
lines changed Original file line number Diff line number Diff line change 33namespace ProcessWire \GraphQL \Field \Page ;
44
55use ProcessWire \GraphQL \Field \Page \AbstractPageField ;
6- use ProcessWire \GraphQL \Type \Union \ PageUnion ;
6+ use ProcessWire \GraphQL \Type \InterfaceType \ PageInterfaceType ;
77
88class PageNextField extends AbstractPageField {
99
1010 public function getType ()
1111 {
12- return new PageUnion ();
12+ return new PageInterfaceType ();
1313 }
1414
1515 public function getName ()
Original file line number Diff line number Diff line change 33namespace ProcessWire \GraphQL \Field \Page ;
44
55use Youshido \GraphQL \Field \AbstractField ;
6- use ProcessWire \GraphQL \Type \Union \ PageUnion ;
6+ use ProcessWire \GraphQL \Type \InterfaceType \ PageInterfaceType ;
77use ProcessWire \GraphQL \Field \Traits \OptionalSelectorTrait ;
88
99class 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 ()
Original file line number Diff line number Diff line change 33namespace ProcessWire \GraphQL \Field \Page ;
44
55use ProcessWire \GraphQL \Field \Page \AbstractPageField ;
6- use ProcessWire \GraphQL \Type \Union \ PageUnion ;
6+ use ProcessWire \GraphQL \Type \InterfaceType \ PageInterfaceType ;
77
88class PagePrevField extends AbstractPageField {
99
1010 public function getType ()
1111 {
12- return new PageUnion ();
12+ return new PageInterfaceType ();
1313 }
1414
1515 public function getName ()
Original file line number Diff line number Diff line change 44
55use Youshido \GraphQL \Type \ListType \ListType ;
66use ProcessWire \GraphQL \Field \WireArray \WireArrayListField ;
7- use ProcessWire \GraphQL \Type \Union \ PageUnion ;
7+ use ProcessWire \GraphQL \Type \InterfaceType \ PageInterfaceType ;
88
99class PageArrayListField extends WireArrayListField {
1010
1111 public function getType ()
1212 {
13- return new ListType (new PageUnion ());
13+ return new ListType (new PageInterfaceType ());
1414 }
1515
1616}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments