We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8179cae + a143209 commit 319a56eCopy full SHA for 319a56e
Sources/GraphQLKit/Graphiti+Enum.swift
@@ -4,9 +4,9 @@ extension Enum where EnumType: CaseIterable & Encodable & RawRepresentable {
4
// Initialize an enum type from a `CaseIterable` enum.
5
public convenience init(
6
_ type: EnumType.Type,
7
- name: String? = nil
+ as name: String? = nil
8
) {
9
- self.init(type) { () -> [Graphiti.Value<EnumType>] in
+ self.init(type, as: name) { () -> [Graphiti.Value<EnumType>] in
10
return EnumType.allCases.map({ Value($0) })
11
}
12
0 commit comments