Automattic\WooCommerce\Vendor\GraphQL\Validator\Rules

OverlappingFieldsCanBeMerged::fieldsConflictMessagepublic staticWC 1.0

Method of the class: OverlappingFieldsCanBeMerged{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = OverlappingFieldsCanBeMerged::fieldsConflictMessage( $responseName, $reasonOrReasons ): string;
$responseName(string) (required)
.
$reasonOrReasons(string|array) (required)
.

OverlappingFieldsCanBeMerged::fieldsConflictMessage() code WC 10.9.1

public static function fieldsConflictMessage(string $responseName, $reasonOrReasons): string
{
    $reasonMessage = static::reasonMessage($reasonOrReasons);

    return "Fields \"{$responseName}\" conflict because {$reasonMessage}. Use different aliases on the fields to fetch both if this was intentional.";
}