@@ -533,28 +533,13 @@ public struct GraphQLField {
533533 self . subscribe = nil
534534 }
535535
536- public init (
537- type: GraphQLOutputType ,
538- description: String ? = nil ,
539- deprecationReason: String ? = nil ,
540- args: GraphQLArgumentConfigMap = [ : ] ,
541- resolve: GraphQLFieldResolve ?
542- ) {
543- self . type = type
544- self . args = args
545- self . deprecationReason = deprecationReason
546- self . description = description
547- self . resolve = resolve
548- self . subscribe = nil
549- }
550-
551536 public init (
552537 type: GraphQLOutputType ,
553538 description: String ? = nil ,
554539 deprecationReason: String ? = nil ,
555540 args: GraphQLArgumentConfigMap = [ : ] ,
556541 resolve: GraphQLFieldResolve ? ,
557- subscribe: GraphQLFieldResolve ?
542+ subscribe: GraphQLFieldResolve ? = nil
558543 ) {
559544 self . type = type
560545 self . args = args
@@ -564,21 +549,6 @@ public struct GraphQLField {
564549 self . subscribe = subscribe
565550 }
566551
567- public init (
568- type: GraphQLOutputType ,
569- description: String ? = nil ,
570- deprecationReason: String ? = nil ,
571- args: GraphQLArgumentConfigMap = [ : ] ,
572- subscribe: GraphQLFieldResolve ?
573- ) {
574- self . type = type
575- self . args = args
576- self . deprecationReason = deprecationReason
577- self . description = description
578- self . resolve = nil
579- self . subscribe = subscribe
580- }
581-
582552 public init (
583553 type: GraphQLOutputType ,
584554 description: String ? = nil ,
@@ -597,25 +567,6 @@ public struct GraphQLField {
597567 }
598568 self . subscribe = nil
599569 }
600-
601- // public init(
602- // type: GraphQLOutputType,
603- // description: String? = nil,
604- // deprecationReason: String? = nil,
605- // args: GraphQLArgumentConfigMap = [:],
606- // subscribe: GraphQLFieldResolveInput
607- // ) {
608- // self.type = type
609- // self.args = args
610- // self.deprecationReason = deprecationReason
611- // self.description = description
612- //
613- // self.resolve = nil
614- // self.subscribe = { source, args, context, eventLoopGroup, info in
615- // let result = try subscribe(source, args, context, info)
616- // return eventLoopGroup.next().makeSucceededFuture(result)
617- // }
618- // }
619570}
620571
621572public typealias GraphQLFieldDefinitionMap = [ String : GraphQLFieldDefinition ]
0 commit comments