Automattic\WooCommerce\Vendor\GraphQL\Validator

QueryValidationContext::__constructpublicWC 1.0

Method of the class: QueryValidationContext{}

No Hooks.

Returns

null. Nothing (null).

Usage

$QueryValidationContext = new QueryValidationContext();
$QueryValidationContext->__construct( $schema, $ast, $typeInfo );
$schema(Schema) (required)
.
$ast(DocumentNode) (required)
.
$typeInfo(TypeInfo) (required)
.

QueryValidationContext::__construct() code WC 10.9.1

public function __construct(Schema $schema, DocumentNode $ast, TypeInfo $typeInfo)
{
    $this->schema = $schema;
    $this->ast = $ast;
    $this->typeInfo = $typeInfo;

    $this->fragmentSpreads = new \SplObjectStorage();
    $this->recursivelyReferencedFragments = new \SplObjectStorage();
    $this->variableUsages = new \SplObjectStorage();
    $this->recursiveVariableUsages = new \SplObjectStorage();
}