Closed aew closed 8 years ago
query WithDefaultValues( $a: Int = 1, $b: String = "ok", $c: ComplexInput = { requiredField: true, intField: 3 } ) { dog { name } }
as:
:variable-definitions {"a" {:type [:named-type "Int"], :default-value 1}, "b" {:type [:named-type "String"], :default-value "ok"}, "c" {:type [:named-type "ComplexInput"], :default-value {"requiredField" [:enum-value [:name "true"]], "intField" 3}}}
Similar for TypeFieldArgumentDefaults and InputTypeFields. See new tests for proposed behavior.
TypeFieldArgumentDefaults
InputTypeFields
Was parsing:
as:
Similar for
TypeFieldArgumentDefaults
andInputTypeFields
. See new tests for proposed behavior.