src/Schema/Directives/DeleteDirective.php
protected function getSingleArgumentDefinition(): InputValueDefinitionNode
    {
        if (count($this->definitionNode->arguments) !== 1) {
            throw new DirectiveException(
                "The @delete directive requires the field {$this->definitionNode->name->value} to only contain a single argument."
            );
        }

        return $this->definitionNode->arguments[0];
    }
protected function getSingleArgumentDefinition(): InputValueDefinitionNode
    {
        if (count($this->definitionNode->arguments) !== 1) {
            throw new DirectiveException(
                "The @delete directive requires the field {$this->definitionNode->name->value} to only contain a single argument."
            );
        }

        return $this->definitionNode->arguments[0];
    }
protected function getSingleArgumentDefinition ( ) : InputValueDefinitionNode { if ( count ( $ this -> definitionNode -> arguments ) !== 1 ) { throw new DirectiveException ( "The @delete directive requires the field {$this->definitionNode->name->value} to only contain a single argument." ) ; } return $ this -> definitionNode -> arguments [ 0 ] ; }
Ensure there is only a single argument defined on the field.

@return \GraphQL\Language\AST\InputValueDefinitionNode

@throws \Nuwave\Lighthouse\Exceptions\DirectiveException
Ensure there is only a single argument defined on the field .