Optional

extension Optional: ValueResolvable where Wrapped: ValueResolvable
extension Optional: InputResolvable where Wrapped: InputResolvable
extension Optional: OutputResolvable where Wrapped: OutputResolvable
extension Optional: Resolvable where Wrapped: Resolvable

Conditional Conformance

All optionals of values that can be translated to a GraphQL Value, can themselves be translated to a GraphQL Value

Available where Wrapped: ValueResolvable

  • Undocumented

    Declaration

    Swift

    public func map() throws -> Map

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 -> Optional<Wrapped>

Available where Wrapped: OutputResolvable