diff --git a/src/Folklore/GraphQL/Support/Type.php b/src/Folklore/GraphQL/Support/Type.php index 20ba4e2e..6d45f75d 100644 --- a/src/Folklore/GraphQL/Support/Type.php +++ b/src/Folklore/GraphQL/Support/Type.php @@ -94,8 +94,16 @@ public function getAttributes() $interfaces = $this->interfaces(); $attributes = array_merge($this->attributes, [ - 'fields' => function () { - return $this->getFields(); + 'fields' => function () use ($interfaces) { + return array_merge( + call_user_func_array("array_merge", + array_map( function ($interface) { + return $interface->getFields(); + }, + $interfaces + )), + $this->getFields() + ); } ], $attributes);