diff --git a/src/Controller.php b/src/Controller.php
index <HASH>..<HASH> 100644
--- a/src/Controller.php
+++ b/src/Controller.php
@@ -120,7 +120,7 @@ class Controller extends BaseController
                 // make this configurable.
                 $clear = true;
                 $graphqlSchema = $builder->buildByName($this->getSchemaKey(), $clear);
-            } else if (!$graphqlSchema) {
+            } elseif (!$graphqlSchema) {
                 throw new SchemaBuilderException(sprintf(
                     'Schema %s has not been built.',
                     $this->getSchemaKey()
diff --git a/src/Schema/Schema.php b/src/Schema/Schema.php
index <HASH>..<HASH> 100644
--- a/src/Schema/Schema.php
+++ b/src/Schema/Schema.php
@@ -108,12 +108,12 @@ class Schema implements ConfigurationApplier
     private $scalars = [];
 
     /**
-     * @var Query
+     * @var Type
      */
     private $queryType;
 
     /**
-     * @var Mutation
+     * @var Type
      */
     private $mutationType;
 
@@ -686,6 +686,23 @@ class Schema implements ConfigurationApplier
     }
 
     /**
+     * @return Type
+     */
+    public function getQueryType(): Type
+    {
+        return $this->queryType;
+    }
+
+    /**
+     * @return Type
+     */
+    public function getMutationType(): Type
+    {
+        return $this->mutationType;
+    }
+
+
+    /**
      * @param string $name
      * @return Type|null
      */
Expose query/mutation type on Schema