We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40ea279 commit b29cbddCopy full SHA for b29cbdd
1 file changed
src/main/kotlin/GraphQLEnumType.kt
@@ -60,6 +60,18 @@ inline fun <T> GraphQLEnumType(
60
return builder.build()
61
}
62
63
+/**
64
+ * Define a value for this enum type.
65
+ *
66
+ * @since 1.0.0
67
+ */
68
+fun <T : Enum<T>> GraphQLEnumTypeBuilder<T>.value(
69
+ enum: T,
70
+ block: GraphQLEnumValueDefinitionBuilder<T>.() -> Unit = {}
71
+) {
72
+ value(enum.name, enum, block)
73
+}
74
+
75
/**
76
* Define a value for this enum type.
77
*
0 commit comments