lib/graphql/language/parser.y in graphql-0.18.6 vs lib/graphql/language/parser.y in graphql-0.18.7
- old
+ new
@@ -226,20 +226,23 @@
position_source: val[0]
})
}
fragment_definition:
- FRAGMENT name ON name_without_on directives_list_opt selection_set {
+ FRAGMENT fragment_name_opt ON name_without_on directives_list_opt selection_set {
return make_node(:FragmentDefinition, {
name: val[1],
type: val[3],
directives: val[4],
selections: val[5],
position_source: val[0],
}
)
}
+ fragment_name_opt:
+ /* none */ { return nil }
+ | name_without_on
type_system_definition:
schema_definition
| type_definition