Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

QueryPlan::analyzeSubFieldsprivateWC 1.0

Method of the class: QueryPlan{}

No Hooks.

Returns

Array.

Usage

// private - for code of main (parent) class only
$result = $this->analyzeSubFields( $type, $selectionSet, $implementors ): array;
$type(Type) (required)
.
$selectionSet(SelectionSetNode) (required)
.
$implementors(array)
.
Default: []

QueryPlan::analyzeSubFields() code WC 10.9.4

private function analyzeSubFields(Type $type, SelectionSetNode $selectionSet, array &$implementors = []): array
{
    $type = Type::getNamedType($type);

    return $type instanceof ObjectType || $type instanceof AbstractType
        ? $this->analyzeSelectionSet($selectionSet, $type, $implementors)
        : [];
}