Method: GraphQL::Language::SanitizedPrinter#coerce_argument_value_to_list?

Defined in:
lib/graphql/language/sanitized_printer.rb

#coerce_argument_value_to_list?(type, value) ⇒ Boolean

Returns:

  • (Boolean)


99
100
101
102
103
104
# File 'lib/graphql/language/sanitized_printer.rb', line 99

def coerce_argument_value_to_list?(type, value)
  type.list? &&
    !value.is_a?(Array) &&
    !value.nil? &&
    !value.is_a?(GraphQL::Language::Nodes::VariableIdentifier)
end