11import  GraphQL
22
33public  extension  Type  { 
4-     @discardableResult  
54    /// Define and add the federated key to this type.
65    ///
76    /// For more information, see https://www.apollographql.com/docs/federation/entities
87    /// - Parameters:
98    ///   - function: The resolver function used to load this entity based on the key value.
109    ///   - _:  The key value. The name of this argument must match a Type field.
1110    /// - Returns: Self for chaining.
11+     @discardableResult  
1212    func  key< Arguments:  Codable > ( 
1313        at function:  @escaping  AsyncResolve < Resolver ,  Context ,  Arguments ,  ObjectType ? > , 
1414        @ArgumentComponentBuilder < Arguments >   _ argument:  ( )  ->  ArgumentComponent < Arguments > 
@@ -17,14 +17,14 @@ public extension Type {
1717        return  self 
1818    } 
1919
20-     @discardableResult  
2120    /// Define and add the federated key to this type.
2221    ///
2322    /// For more information, see https://www.apollographql.com/docs/federation/entities
2423    /// - Parameters:
2524    ///   - function: The resolver function used to load this entity based on the key value.
2625    ///   - _:  The key values. The names of these arguments must match Type fields.
2726    /// - Returns: Self for chaining.
27+     @discardableResult  
2828    func  key< Arguments:  Codable > ( 
2929        at function:  @escaping  AsyncResolve < Resolver ,  Context ,  Arguments ,  ObjectType ? > , 
3030        @ArgumentComponentBuilder < Arguments >   _ arguments:  ( ) 
@@ -34,14 +34,14 @@ public extension Type {
3434        return  self 
3535    } 
3636
37-     @discardableResult  
3837    /// Define and add the federated key to this type.
3938    ///
4039    /// For more information, see https://www.apollographql.com/docs/federation/entities
4140    /// - Parameters:
4241    ///   - function: The resolver function used to load this entity based on the key value.
4342    ///   - _:  The key value. The name of this argument must match a Type field.
4443    /// - Returns: Self for chaining.
44+     @discardableResult  
4545    func  key< Arguments:  Codable > ( 
4646        at function:  @escaping  SimpleAsyncResolve < Resolver ,  Context ,  Arguments ,  ObjectType ? > , 
4747        @ArgumentComponentBuilder < Arguments >   _ argument:  ( )  ->  ArgumentComponent < Arguments > 
@@ -50,14 +50,14 @@ public extension Type {
5050        return  self 
5151    } 
5252
53-     @discardableResult  
5453    /// Define and add the federated key to this type.
5554    ///
5655    /// For more information, see https://www.apollographql.com/docs/federation/entities
5756    /// - Parameters:
5857    ///   - function: The resolver function used to load this entity based on the key value.
5958    ///   - _:  The key values. The names of these arguments must match Type fields.
6059    /// - Returns: Self for chaining.
60+     @discardableResult  
6161    func  key< Arguments:  Codable > ( 
6262        at function:  @escaping  SimpleAsyncResolve < Resolver ,  Context ,  Arguments ,  ObjectType ? > , 
6363        @ArgumentComponentBuilder < Arguments >   _ arguments:  ( ) 
@@ -67,14 +67,14 @@ public extension Type {
6767        return  self 
6868    } 
6969
70-     @discardableResult  
7170    /// Define and add the federated key to this type.
7271    ///
7372    /// For more information, see https://www.apollographql.com/docs/federation/entities
7473    /// - Parameters:
7574    ///   - function: The resolver function used to load this entity based on the key value.
7675    ///   - _:  The key value. The name of this argument must match a Type field.
7776    /// - Returns: Self for chaining.
77+     @discardableResult  
7878    func  key< Arguments:  Codable > ( 
7979        at function:  @escaping  SyncResolve < Resolver ,  Context ,  Arguments ,  ObjectType ? > , 
8080        @ArgumentComponentBuilder < Arguments >   _ arguments:  ( ) 
@@ -84,14 +84,14 @@ public extension Type {
8484        return  self 
8585    } 
8686
87-     @discardableResult  
8887    /// Define and add the federated key to this type.
8988    ///
9089    /// For more information, see https://www.apollographql.com/docs/federation/entities
9190    /// - Parameters:
9291    ///   - function: The resolver function used to load this entity based on the key value.
9392    ///   - _:  The key values. The names of these arguments must match Type fields.
9493    /// - Returns: Self for chaining.
94+     @discardableResult  
9595    func  key< Arguments:  Codable > ( 
9696        at function:  @escaping  SyncResolve < Resolver ,  Context ,  Arguments ,  ObjectType ? > , 
9797        @ArgumentComponentBuilder < Arguments >   _ argument:  ( )  ->  ArgumentComponent < Arguments > 
@@ -102,15 +102,15 @@ public extension Type {
102102} 
103103
104104public  extension  Type  { 
105-     @available ( macOS 10 . 15 ,  iOS 15 ,  watchOS 8 ,  tvOS 15 ,  * )  
106-     @discardableResult  
107105    /// Define and add the federated key to this type.
108106    ///
109107    /// For more information, see https://www.apollographql.com/docs/federation/entities
110108    /// - Parameters:
111109    ///   - function: The resolver function used to load this entity based on the key value.
112110    ///   - _:  The key value. The name of this argument must match a Type field.
113111    /// - Returns: Self for chaining.
112+     @available ( macOS 10 . 15 ,  iOS 15 ,  watchOS 8 ,  tvOS 15 ,  * )  
113+     @discardableResult  
114114    func  key< Arguments:  Codable > ( 
115115        at function:  @escaping  ConcurrentResolve < Resolver ,  Context ,  Arguments ,  ObjectType ? > , 
116116        @ArgumentComponentBuilder < Arguments >   _ argument:  ( )  ->  ArgumentComponent < Arguments > 
@@ -119,15 +119,15 @@ public extension Type {
119119        return  self 
120120    } 
121121
122-     @available ( macOS 10 . 15 ,  iOS 15 ,  watchOS 8 ,  tvOS 15 ,  * )  
123-     @discardableResult  
124122    /// Define and add the federated key to this type.
125123    ///
126124    /// For more information, see https://www.apollographql.com/docs/federation/entities
127125    /// - Parameters:
128126    ///   - function: The resolver function used to load this entity based on the key value.
129127    ///   - _:  The key values. The names of these arguments must match Type fields.
130128    /// - Returns: Self for chaining.
129+     @available ( macOS 10 . 15 ,  iOS 15 ,  watchOS 8 ,  tvOS 15 ,  * )  
130+     @discardableResult  
131131    func  key< Arguments:  Codable > ( 
132132        at function:  @escaping  ConcurrentResolve < Resolver ,  Context ,  Arguments ,  ObjectType ? > , 
133133        @ArgumentComponentBuilder < Arguments >   _ arguments:  ( )  ->  [ ArgumentComponent < Arguments > ] 
0 commit comments