File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed 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 \Object \ PageType as PageObjectType ;
6+ use ProcessWire \GraphQL \Type \InterfaceType \ PageInterfaceType ;
77use ProcessWire \GraphQL \Field \Traits \OptionalSelectorTrait ;
88
99class 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 ()
Original file line number Diff line number Diff line change 33namespace ProcessWire \GraphQL \Field \Page ;
44
55use Youshido \GraphQL \Type \NonNullType ;
6- use ProcessWire \GraphQL \Type \Object \ PageType as PageObjectType ;
6+ use ProcessWire \GraphQL \Type \InterfaceType \ PageInterfaceType ;
77use ProcessWire \GraphQL \Field \Page \AbstractPageField ;
88
99class 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 ()
You can’t perform that action at this time.
0 commit comments