Skip to content

Commit

Permalink
Adding support for variable values
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdsupremacist committed Apr 1, 2020
1 parent a65dc36 commit 6ec344c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ extension GraphQLSchema {

public static func perform(request: String,
viewerContext: ViewerContext,
variableValues: [String : Map] = [:],
eventLoopGroup: EventLoopGroup? = nil) throws -> Future<GraphQLResult> {

let schema = try schemaCache.getOrPut(String(describing: Self.self), default: try resolve())
Expand All @@ -24,7 +25,8 @@ extension GraphQLSchema {
request: request,
rootValue: viewerContext,
context: context,
eventLoopGroup: eventLoopGroup ?? defaultEventLoopGroup)
eventLoopGroup: eventLoopGroup ?? defaultEventLoopGroup,
variableValues: variableValues)
}

}
Expand Down

0 comments on commit 6ec344c

Please # to comment.