Skip to content

Commit 15073b4

Browse files
Merge pull request #88 from BradLarson/void-fix
Changing Void() default parameters to avoid a recent compiler crasher
2 parents 834e2cf + 984c263 commit 15073b4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/GraphQL/GraphQL.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ public func graphql(
8181
instrumentation: Instrumentation = NoOpInstrumentation,
8282
schema: GraphQLSchema,
8383
request: String,
84-
rootValue: Any = Void(),
85-
context: Any = Void(),
84+
rootValue: Any = (),
85+
context: Any = (),
8686
eventLoopGroup: EventLoopGroup,
8787
variableValues: [String: Map] = [:],
8888
operationName: String? = nil
@@ -135,8 +135,8 @@ public func graphql<Retrieval: PersistedQueryRetrieval>(
135135
instrumentation: Instrumentation = NoOpInstrumentation,
136136
queryRetrieval: Retrieval,
137137
queryId: Retrieval.Id,
138-
rootValue: Any = Void(),
139-
context: Any = Void(),
138+
rootValue: Any = (),
139+
context: Any = (),
140140
eventLoopGroup: EventLoopGroup,
141141
variableValues: [String: Map] = [:],
142142
operationName: String? = nil
@@ -198,8 +198,8 @@ public func graphqlSubscribe(
198198
instrumentation: Instrumentation = NoOpInstrumentation,
199199
schema: GraphQLSchema,
200200
request: String,
201-
rootValue: Any = Void(),
202-
context: Any = Void(),
201+
rootValue: Any = (),
202+
context: Any = (),
203203
eventLoopGroup: EventLoopGroup,
204204
variableValues: [String: Map] = [:],
205205
operationName: String? = nil

0 commit comments

Comments
 (0)