WooCommerce Code Reference

LoneSchemaDefinition extends ValidationRule
in package

Lone schema definition.

A Automattic\WooCommerce\Vendor\GraphQL document is only valid if it contains only one schema definition.

Table of Contents

$name  : string
canNotDefineSchemaWithinExtensionMessage()  : string
getName()  : string
getSDLVisitor()  : array<string|int, mixed>
Returns structure suitable for @see \Automattic\WooCommerce\Vendor\GraphQL\Language\Visitor.
getVisitor()  : array<string|int, mixed>
Returns structure suitable for @see \Automattic\WooCommerce\Vendor\GraphQL\Language\Visitor.
schemaDefinitionNotAloneMessage()  : string

Properties

Methods