@@ -67,8 +67,6 @@ public struct SubscriptionResult {
67
67
/// - parameter queryStrategy: The field execution strategy to use for query requests
68
68
/// - parameter mutationStrategy: The field execution strategy to use for mutation requests
69
69
/// - parameter subscriptionStrategy: The field execution strategy to use for subscription requests
70
- /// - parameter instrumentation: The instrumentation implementation to call during the parsing,
71
- /// validating, execution, and field resolution stages.
72
70
/// - parameter schema: The GraphQL type system to use when validating and executing a
73
71
/// query.
74
72
/// - parameter request: A GraphQL language formatted string representing the requested
@@ -93,7 +91,6 @@ public func graphql(
93
91
queryStrategy: QueryFieldExecutionStrategy = SerialFieldExecutionStrategy ( ) ,
94
92
mutationStrategy: MutationFieldExecutionStrategy = SerialFieldExecutionStrategy ( ) ,
95
93
subscriptionStrategy: SubscriptionFieldExecutionStrategy = SerialFieldExecutionStrategy ( ) ,
96
- instrumentation: Instrumentation = NoOpInstrumentation,
97
94
validationRules: [ ( ValidationContext ) -> Visitor ] = [ ] ,
98
95
schema: GraphQLSchema ,
99
96
request: String ,
@@ -103,9 +100,8 @@ public func graphql(
103
100
operationName: String ? = nil
104
101
) async throws -> GraphQLResult {
105
102
let source = Source ( body: request, name: " GraphQL request " )
106
- let documentAST = try parse ( instrumentation : instrumentation , source: source)
103
+ let documentAST = try parse ( source: source)
107
104
let validationErrors = validate (
108
- instrumentation: instrumentation,
109
105
schema: schema,
110
106
ast: documentAST,
111
107
rules: validationRules
@@ -119,7 +115,6 @@ public func graphql(
119
115
queryStrategy: queryStrategy,
120
116
mutationStrategy: mutationStrategy,
121
117
subscriptionStrategy: subscriptionStrategy,
122
- instrumentation: instrumentation,
123
118
schema: schema,
124
119
documentAST: documentAST,
125
120
rootValue: rootValue,
@@ -135,8 +130,6 @@ public func graphql(
135
130
/// - parameter queryStrategy: The field execution strategy to use for query requests
136
131
/// - parameter mutationStrategy: The field execution strategy to use for mutation requests
137
132
/// - parameter subscriptionStrategy: The field execution strategy to use for subscription requests
138
- /// - parameter instrumentation: The instrumentation implementation to call during the parsing,
139
- /// validating, execution, and field resolution stages.
140
133
/// - parameter queryRetrieval: The PersistedQueryRetrieval instance to use for looking up
141
134
/// queries
142
135
/// - parameter queryId: The id of the query to execute
@@ -160,7 +153,6 @@ public func graphql<Retrieval: PersistedQueryRetrieval>(
160
153
queryStrategy: QueryFieldExecutionStrategy = SerialFieldExecutionStrategy ( ) ,
161
154
mutationStrategy: MutationFieldExecutionStrategy = SerialFieldExecutionStrategy ( ) ,
162
155
subscriptionStrategy: SubscriptionFieldExecutionStrategy = SerialFieldExecutionStrategy ( ) ,
163
- instrumentation: Instrumentation = NoOpInstrumentation,
164
156
queryRetrieval: Retrieval ,
165
157
queryId: Retrieval . Id ,
166
158
rootValue: Any = ( ) ,
@@ -180,7 +172,6 @@ public func graphql<Retrieval: PersistedQueryRetrieval>(
180
172
queryStrategy: queryStrategy,
181
173
mutationStrategy: mutationStrategy,
182
174
subscriptionStrategy: subscriptionStrategy,
183
- instrumentation: instrumentation,
184
175
schema: schema,
185
176
documentAST: documentAST,
186
177
rootValue: rootValue,
@@ -202,8 +193,6 @@ public func graphql<Retrieval: PersistedQueryRetrieval>(
202
193
/// - parameter queryStrategy: The field execution strategy to use for query requests
203
194
/// - parameter mutationStrategy: The field execution strategy to use for mutation requests
204
195
/// - parameter subscriptionStrategy: The field execution strategy to use for subscription requests
205
- /// - parameter instrumentation: The instrumentation implementation to call during the parsing,
206
- /// validating, execution, and field resolution stages.
207
196
/// - parameter schema: The GraphQL type system to use when validating and executing a
208
197
/// query.
209
198
/// - parameter request: A GraphQL language formatted string representing the requested
@@ -232,7 +221,6 @@ public func graphqlSubscribe(
232
221
queryStrategy: QueryFieldExecutionStrategy = SerialFieldExecutionStrategy ( ) ,
233
222
mutationStrategy: MutationFieldExecutionStrategy = SerialFieldExecutionStrategy ( ) ,
234
223
subscriptionStrategy: SubscriptionFieldExecutionStrategy = SerialFieldExecutionStrategy ( ) ,
235
- instrumentation: Instrumentation = NoOpInstrumentation,
236
224
validationRules: [ ( ValidationContext ) -> Visitor ] = [ ] ,
237
225
schema: GraphQLSchema ,
238
226
request: String ,
@@ -242,9 +230,8 @@ public func graphqlSubscribe(
242
230
operationName: String ? = nil
243
231
) async throws -> SubscriptionResult {
244
232
let source = Source ( body: request, name: " GraphQL Subscription request " )
245
- let documentAST = try parse ( instrumentation : instrumentation , source: source)
233
+ let documentAST = try parse ( source: source)
246
234
let validationErrors = validate (
247
- instrumentation: instrumentation,
248
235
schema: schema,
249
236
ast: documentAST,
250
237
rules: validationRules
@@ -258,7 +245,6 @@ public func graphqlSubscribe(
258
245
queryStrategy: queryStrategy,
259
246
mutationStrategy: mutationStrategy,
260
247
subscriptionStrategy: subscriptionStrategy,
261
- instrumentation: instrumentation,
262
248
schema: schema,
263
249
documentAST: documentAST,
264
250
rootValue: rootValue,
0 commit comments