swift-graphql
swift-graphql copied to clipboard
NSNull case was handled for nullable selections
Fix for the https://github.com/maticzav/swift-graphql/issues/89
I've found that value of AnyCodable is Optional<Any> - some :
(lldb) po value
▿ Optional<Any>
- some : <null>
(lldb) po value == nil
false
@frozen public struct AnyCodable: Codable {
public let value: Any
public init<T>(_ value: T?) {
self.value = value ?? ()
}
}
But the nullable selection handles only void
case
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
swift-graphql | ✅ Ready (Inspect) | Visit Preview | Sep 14, 2022 at 4:35PM (UTC) |
Sweet, thanks!