Skip to content

Commit

Permalink
Merge pull request #613 from Netflix/fix-typo-mutation
Browse files Browse the repository at this point in the history
Fix capitalization for Mutation type
  • Loading branch information
kilink authored Nov 20, 2023
2 parents 46cce46 + 41e405c commit de5edfd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class ConstantsGenerator(private val config: CodeGenConfig, private val document
if (document.definitions.any { it is ObjectTypeDefinition && it.name == "Query" }) {
javaType.addField(FieldSpec.builder(TypeName.get(String::class.java), "QUERY_TYPE").addModifiers(Modifier.PUBLIC, Modifier.STATIC, Modifier.FINAL).initializer(""""Query"""").build())
}
if (document.definitions.any { it is ObjectTypeDefinition && it.name == "MUTATION" }) {
if (document.definitions.any { it is ObjectTypeDefinition && it.name == "Mutation" }) {
javaType.addField(FieldSpec.builder(TypeName.get(String::class.java), "MUTATION_TYPE").addModifiers(Modifier.PUBLIC, Modifier.STATIC, Modifier.FINAL).initializer(""""Mutation"""").build())
}
if (document.definitions.any { it is ObjectTypeDefinition && it.name == "Subscription" }) {
Expand Down

0 comments on commit de5edfd

Please sign in to comment.