@@ -491,7 +491,11 @@ public extension SubscriptionField {
491
491
492
492
// MARK: SyncResolve Initializers
493
493
494
+ // '@_disfavoredOverload' is included below because otherwise `SimpleAsyncResolve` initializers also match this signature, causing the
495
+ // calls to be ambiguous. We prefer that if an EventLoopFuture is returned from the resolve, that `SimpleAsyncResolve` is matched.
496
+
494
497
public extension SubscriptionField {
498
+ @_disfavoredOverload
495
499
convenience init (
496
500
_ name: String ,
497
501
at function: @escaping SyncResolve < SourceEventType , Context , Arguments , FieldType > ,
@@ -511,6 +515,7 @@ public extension SubscriptionField {
511
515
)
512
516
}
513
517
518
+ @_disfavoredOverload
514
519
convenience init (
515
520
_ name: String ,
516
521
at function: @escaping SyncResolve < SourceEventType , Context , Arguments , FieldType > ,
@@ -528,6 +533,7 @@ public extension SubscriptionField {
528
533
}
529
534
530
535
public extension SubscriptionField {
536
+ @_disfavoredOverload
531
537
convenience init (
532
538
_ name: String ,
533
539
as: FieldType . Type ,
@@ -542,6 +548,7 @@ public extension SubscriptionField {
542
548
self . init ( name: name, arguments: [ argument ( ) ] , as: `as`, syncSubscribe: subFunc)
543
549
}
544
550
551
+ @_disfavoredOverload
545
552
convenience init (
546
553
_ name: String ,
547
554
as: FieldType . Type ,
@@ -557,6 +564,7 @@ public extension SubscriptionField {
557
564
self . init ( name: name, arguments: arguments ( ) , as: `as`, syncSubscribe: subFunc)
558
565
}
559
566
567
+ @_disfavoredOverload
560
568
convenience init < ResolveType> (
561
569
_ name: String ,
562
570
at function: @escaping SyncResolve < SourceEventType , Context , Arguments , ResolveType > ,
@@ -577,6 +585,7 @@ public extension SubscriptionField {
577
585
)
578
586
}
579
587
588
+ @_disfavoredOverload
580
589
convenience init < ResolveType> (
581
590
_ name: String ,
582
591
at function: @escaping SyncResolve < SourceEventType , Context , Arguments , ResolveType > ,
0 commit comments