Automattic\WooCommerce\Vendor\GraphQL\Type

SchemaValidationContext::duplicateTypepublic staticWC 1.0

Method of the class: SchemaValidationContext{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = SchemaValidationContext::duplicateType( $schema, $path, $name ): string;
$schema(Schema) (required)
.
$path(string) (required)
.
$name(string) (required)
.

SchemaValidationContext::duplicateType() code WC 10.9.1

public static function duplicateType(Schema $schema, string $path, string $name): string
{
    $hint = isset($schema->getConfig()->typeLoader)
        ? 'Ensure the type loader returns the same instance. '
        : '';

    return "Found duplicate type in schema at {$path}: {$name}. {$hint}See https://webonyx.github.io/graphql-php/type-definitions/#type-registry.";
}