@@ -176,19 +176,19 @@ union_to_avro = function(fieldType, subSelections, context)
176
176
if box_sub_selections .selectionSet .selections [1 ].selectionSet ~= nil then
177
177
-- Object GraphQL type case.
178
178
type_sub_selections =
179
- box_sub_selections .selectionSet .selections [1 ].selectionSet .selections
179
+ box_sub_selections .selectionSet .selections [1 ].selectionSet .selections
180
180
else
181
181
-- Scalar GraphQL type case.
182
182
type_sub_selections = box_sub_selections .selectionSet .selections [1 ]
183
183
end
184
184
185
185
if is_multihead then
186
186
local avro_type = gql_type_to_avro (type .kind ,
187
- type_sub_selections , context , {is_nullable = true })
187
+ type_sub_selections , context , {is_nullable = true })
188
188
table.insert (result .fields , {name = type .name , type = avro_type })
189
189
else
190
190
table.insert (result , gql_type_to_avro (type .kind ,
191
- type_sub_selections , context ))
191
+ type_sub_selections , context ))
192
192
end
193
193
end
194
194
@@ -224,7 +224,7 @@ local function field_to_avro(object_type, fields, context)
224
224
assert (d .kind == " directive" )
225
225
check (d .name .value , " directive.name.value" , " string" )
226
226
assert (d .name .value == " include" or d .name .value == " skip" ,
227
- " Only 'include' and 'skip' directives are supported for now" )
227
+ " Only 'include' and 'skip' directives are supported for now" )
228
228
end
229
229
if type (fieldTypeAvro ) == " string" then
230
230
if string.sub (fieldTypeAvro , - 1 ) ~= ' *' then
0 commit comments