public static function buildAST(DocumentNode $ast, ?callable $typeConfigDecorator = null, array $options = [])
    {
        $builder = new self($ast, $typeConfigDecorator, $options);

        return $builder->buildSchema();
    }
public static function buildAST(DocumentNode $ast, ?callable $typeConfigDecorator = null, array $options = [])
    {
        $builder = new self($ast, $typeConfigDecorator, $options);

        return $builder->buildSchema();
    }
public static function buildAST ( DocumentNode $ ast , ? callable $ typeConfigDecorator = null , array $ options = [ ] ) { $ builder = new self ( $ ast , $ typeConfigDecorator , $ options ) ; return $ builder -> buildSchema ( ) ; }
This takes the ast of a schema document produced by the parse function in
GraphQL\Language\Parser.

If no schema definition is provided, then it will look for types named Query
and Mutation.

Given that AST it constructs a GraphQL\Type\Schema. The resulting schema
has no resolve methods, so execution will use default resolvers.

Accepts options as a third argument:

- commentDescriptions:
Provide true to use preceding comments as the description.

@param bool[] $options

@return Schema

@throws Error

@api
This takes the ast of a schema document produced by the parse function in GraphQL \ Language \ Parser .