JSONOptional

public enum JSONOptional<Wrapped>
extension JSONOptional: Resolvable where Wrapped: Resolvable
extension JSONOptional: InputResolvable where Wrapped: InputResolvable

Undocumented

  • Undocumented

    Declaration

    Swift

    case missingKey
  • Undocumented

    Declaration

    Swift

    case null
  • Undocumented

    Declaration

    Swift

    case some(Wrapped)
  • Undocumented

    Declaration

    Swift

    public func map<T>(_ transform: (Wrapped) throws -> T) rethrows -> JSONOptional<T>
  • Undocumented

    Declaration

    Swift

    public func flatMap<T>(_ transform: (Wrapped) throws -> JSONOptional<T>) rethrows -> JSONOptional<T>

Available where Wrapped: InputResolvable

  • Declaration

    Swift

    public static func resolve(using context: inout Resolution.Context) throws -> GraphQLInputType
  • Declaration

    Swift

    public static func create(from map: Map) throws -> JSONOptional<Wrapped>
  • Undocumented

    Declaration

    Swift

    public static func createFromMissingKey() throws -> JSONOptional<Wrapped>