Documentation

KnownTypeNames extends ValidationRule
in package

Known type names

A GraphQL document is only valid if referenced types (specifically variable definitions and fragment conditions) are defined by the type schema.

Table of Contents

$name  : string
__invoke()  : mixed
getName()  : mixed
getSDLVisitor()  : array<string|int, mixed>
Returns structure suitable for GraphQL\Language\Visitor
getVisitor()  : array<string|int, mixed>
Returns structure suitable for GraphQL\Language\Visitor
unknownTypeMessage()  : mixed

Properties

Methods

unknownTypeMessage()

public static unknownTypeMessage(string $type, array<string|int, string> $suggestedTypes) : mixed
Parameters
$type : string
$suggestedTypes : array<string|int, string>
Return values
mixed

Search results