Automattic\WooCommerce\Vendor\GraphQL\Type
SchemaValidationContext::getFieldNode
Method of the class: SchemaValidationContext{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->getFieldNode( $type, $fieldName ): ?FieldDefinitionNode;
- $type(ObjectType|InterfaceType) (required)
- .
- $fieldName(string) (required)
- .
SchemaValidationContext::getFieldNode() SchemaValidationContext::getFieldNode code WC 10.9.1
private function getFieldNode(Type $type, string $fieldName): ?FieldDefinitionNode
{
$nodes = $this->getAllFieldNodes($type, $fieldName);
return $nodes[0] ?? null;
}