Skip to content

Commit e710301

Browse files
author
Todd Berman
committed
Pass name in as the default value if nothing is provided
1 parent 38c6daa commit e710301

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)