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.
1 parent 600357f commit 1a8dc8aCopy full SHA for 1a8dc8a
Sources/GraphQL/Execution/Execute.swift
@@ -1198,6 +1198,14 @@ func defaultResolve(
1198
let value = subscriptable[info.fieldName]
1199
return eventLoopGroup.next().makeSucceededFuture(value)
1200
}
1201
+ if let subscriptable = source as? [String: Any] {
1202
+ let value = subscriptable[info.fieldName]
1203
+ return eventLoopGroup.next().makeSucceededFuture(value)
1204
+ }
1205
+ if let subscriptable = source as? OrderedDictionary<String, Any> {
1206
1207
1208
1209
1210
let mirror = Mirror(reflecting: source)
1211
guard let value = mirror.getValue(named: info.fieldName) else {
0 commit comments