Automattic\WooCommerce\Vendor\GraphQL\Utils
BuildClientSchema::getInputType
Method of the class: BuildClientSchema{}
No Hooks.
Returns
Type&InputType.
Usage
// private - for code of main (parent) class only $result = $this->getInputType( $typeRef ): InputType;
- $typeRef(array) (required)
- .
BuildClientSchema::getInputType() BuildClientSchema::getInputType code WC 10.9.1
private function getInputType(array $typeRef): InputType
{
$type = $this->getType($typeRef);
if ($type instanceof InputType) {
return $type;
}
$notInputType = Utils::printSafe($type);
throw new InvariantViolation("Introspection must provide input type for arguments, but received: {$notInputType}.");
}