Automattic\WooCommerce\Vendor\GraphQL\Utils
SchemaExtender::extend
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() 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);
}