public function writeSchemaToFilesystem()
    {
        $manager = $this->getManager();
        try {
            $types = StaticSchema::inst()->introspectTypes($manager);
        } catch (Exception $e) {
            throw new Exception(sprintf(
                'There was an error caching the GraphQL types: %s',
                $e->getMessage()
            ));
        }

        $this->writeTypes(json_encode($types));
    }