GraphQLOperationRequest
public struct GraphQLOperationRequest<R> : AmplifyOperationRequest where R : Decodable
GraphQL Operation Request
-
The name of the API to perform the request against
Declaration
Swift
public let apiName: String?
-
The GraphQL operation type
Declaration
Swift
public let operationType: GraphQLOperationType
-
The GraphQL query document used for the operation
Declaration
Swift
public let document: String
-
The GraphQL variables used for the operation
Declaration
Swift
public let variables: [String : Any]?
-
The type to decode to
Declaration
Swift
public let responseType: R.Type
-
The path to traverse before decoding to
responseType
.Declaration
Swift
public let decodePath: String?
-
The authorization mode
Declaration
Swift
public let authMode: AuthorizationMode?
-
Options to adjust the behavior of this request, including plugin-options
Declaration
Swift
public let options: Options
-
Initializer for GraphQLOperationRequest
Declaration
Swift
public init(apiName: String?, operationType: GraphQLOperationType, document: String, variables: [String: Any]? = nil, responseType: R.Type, decodePath: String? = nil, authMode: AuthorizationMode? = nil, options: Options)