AmplifyOperationContext

public struct AmplifyOperationContext<Request> where Request : AmplifyOperationRequest

A context object passed in the HubPayload of all events dispatched to the Hub by an AmplifyOperation. This object can be used to filter on a particular operation.

  • The id of the operation

    Declaration

    Swift

    public let operationId: UUID
  • The Request used to instantiate the operation

    Declaration

    Swift

    public let request: Request