Automattic\WooCommerce\Vendor\GraphQL\Utils

SchemaExtender::extendpublic staticWC 1.0

Method of the class: SchemaExtender{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = SchemaExtender::extend( $schema, $documentAST, $options, ?callable $typeConfigDecorator, ?callable $fieldConfigDecorator ): Schema;
$schema(Schema) (required)
.
$documentAST(DocumentNode) (required)
.
$options(array)
.
Default: []
?callable $typeConfigDecorator
.
Default: null
?callable $fieldConfigDecorator
.
Default: null

SchemaExtender::extend() code WC 10.9.1

public static function extend(
    Schema $schema,
    DocumentNode $documentAST,
    array $options = [],
    ?callable $typeConfigDecorator = null,
    ?callable $fieldConfigDecorator = null
): Schema {
    return (new static())->doExtend($schema, $documentAST, $options, $typeConfigDecorator, $fieldConfigDecorator);
}