GraphQL\Validator\Rules\KnownTypeNames::unknownTypeMessage PHP Method

unknownTypeMessage() static public method

static public unknownTypeMessage ( $type )
    static function unknownTypeMessage($type)
    {
        return "Unknown type \"{$type}\".";
    }

Usage Example

 private function unknownType($typeName, $line, $column)
 {
     return FormattedError::create(KnownTypeNames::unknownTypeMessage($typeName), [new SourceLocation($line, $column)]);
 }