You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/GraphQL/GraphQL.swift
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,23 @@
6
6
/// may wish to separate the validation and execution phases to a static time
7
7
/// tooling step, and a server runtime step.
8
8
///
9
-
/// - parameter schema: The GraphQL type system to use when validating and executing a query.
10
-
/// - parameter request: A GraphQL language formatted string representing the requested operation.
11
-
/// - parameter rootValue: The value provided as the first argument to resolver functions on the top level type (e.g. the query object type).
12
-
/// - parameter contextValue: A context value provided to all resolver functions functions
13
-
/// - parameter variableValues: A mapping of variable name to runtime value to use for all variables defined in the `request`.
14
-
/// - parameter operationName: The name of the operation to use if `request` contains multiple possible operations. Can be omitted if `request` contains only one operation.
9
+
/// - parameter queryStrategy: The field execution strategy to use for query requests
10
+
/// - parameter mutationStrategy: The field execution strategy to use for mutation requests
11
+
/// - parameter subscriptionStrategy: The field execution strategy to use for subscription requests
12
+
/// - parameter schema: The GraphQL type system to use when validating and executing a query.
13
+
/// - parameter request: A GraphQL language formatted string representing the requested operation.
14
+
/// - parameter rootValue: The value provided as the first argument to resolver functions on the top level type (e.g. the query object type).
15
+
/// - parameter contextValue: A context value provided to all resolver functions functions
16
+
/// - parameter variableValues: A mapping of variable name to runtime value to use for all variables defined in the `request`.
17
+
/// - parameter operationName: The name of the operation to use if `request` contains multiple possible operations. Can be omitted if `request` contains only one operation.
15
18
///
16
19
/// - throws: throws GraphQLError if an error occurs while parsing the `request`.
17
20
///
18
21
/// - returns: returns a `Map` dictionary containing the result of the query inside the key `data` and any validation or execution errors inside the key `errors`. The value of `data` might be `null` if, for example, the query is invalid. It's possible to have both `data` and `errors` if an error occurs only in a specific field. If that happens the value of that field will be `null` and there will be an error inside `errors` specifying the reason for the failure and the path of the failed field.
0 commit comments