src/Schema/AST/ASTHelper.php
public static function argValue(ArgumentNode $arg, $default = null)
    {
        $valueNode = $arg->value;

        if (! $valueNode) {
            return $default;
        }

        return AST::valueFromASTUntyped($valueNode);
    }
public static function argValue(ArgumentNode $arg, $default = null)
    {
        $valueNode = $arg->value;

        if (! $valueNode) {
            return $default;
        }

        return AST::valueFromASTUntyped($valueNode);
    }
public static function argValue ( ArgumentNode $ arg , $ default = null ) { $ valueNode = $ arg -> value ; if ( ! $ valueNode ) { return $ default ; } return AST :: valueFromASTUntyped ( $ valueNode ) ; }
Get argument's value.

@param  \GraphQL\Language\AST\ArgumentNode  $arg
@param  mixed  $default
@return mixed
Get argument s value .