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));
    }
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));
    }
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 ) ) ; }
Introspect the schema and persist it to the filesystem
@throws Exception
Introspect the schema and persist it to the filesystem