Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

QueryPlan::getReferencedFieldspublicWC 1.0

TODO return array<string, true>.

Method of the class: QueryPlan{}

No Hooks.

Returns

Array. string>

Usage

$QueryPlan = new QueryPlan();
$QueryPlan->getReferencedFields(): array;

QueryPlan::getReferencedFields() code WC 10.9.1

public function getReferencedFields(): array
{
    $allFields = [];
    foreach ($this->typeToFields as $fields) {
        foreach ($fields as $field => $_) {
            $allFields[$field] = true;
        }
    }

    return array_keys($allFields);
}