Skip to content

Commit a700570

Browse files
committed
Merge pull request graphql-java#23 from nfl/master
Pass name in as the default value if nothing is provided
2 parents 61a7bbd + 6ed2b18 commit a700570

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/graphql/schema/GraphQLEnumType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public Builder value(String name, Object value) {
102102
}
103103

104104
public Builder value(String name) {
105-
values.add(new GraphQLEnumValueDefinition(name, null, null));
105+
values.add(new GraphQLEnumValueDefinition(name, null, name));
106106
return this;
107107
}
108108

0 commit comments

Comments
 (0)