Automattic\WooCommerce\Vendor\GraphQL\Utils

BuildSchema::__constructpublicWC 1.0

Method of the class: BuildSchema{}

No Hooks.

Returns

null. Nothing (null).

Usage

$BuildSchema = new BuildSchema();
$BuildSchema->__construct( $ast, ?callable $typeConfigDecorator, $options, ?callable $fieldConfigDecorator );
$ast(DocumentNode) (required)
.
?callable $typeConfigDecorator
.
Default: null
$options(array)
.
Default: []
?callable $fieldConfigDecorator
.
Default: null

BuildSchema::__construct() code WC 10.9.1

public function __construct(
    DocumentNode $ast,
    ?callable $typeConfigDecorator = null,
    array $options = [],
    ?callable $fieldConfigDecorator = null
) {
    $this->ast = $ast;
    $this->typeConfigDecorator = $typeConfigDecorator;
    $this->options = $options;
    $this->fieldConfigDecorator = $fieldConfigDecorator;
}