diff --git a/Amplify/Categories/API/Request/GraphQLOperationType.swift b/Amplify/Categories/API/Request/GraphQLOperationType.swift index 38160a72f2..7e9e2735ed 100644 --- a/Amplify/Categories/API/Request/GraphQLOperationType.swift +++ b/Amplify/Categories/API/Request/GraphQLOperationType.swift @@ -6,7 +6,7 @@ // /// The type of a GraphQL operation -public enum GraphQLOperationType { +public enum GraphQLOperationType: String { /// A GraphQL Query operation case query diff --git a/AmplifyPlugins/Core/AWSPluginsCore/Model/GraphQLDocument/SingleDirectiveGraphQLDocument.swift b/AmplifyPlugins/Core/AWSPluginsCore/Model/GraphQLDocument/SingleDirectiveGraphQLDocument.swift index ea5c29d342..a219bf3ad7 100644 --- a/AmplifyPlugins/Core/AWSPluginsCore/Model/GraphQLDocument/SingleDirectiveGraphQLDocument.swift +++ b/AmplifyPlugins/Core/AWSPluginsCore/Model/GraphQLDocument/SingleDirectiveGraphQLDocument.swift @@ -8,12 +8,6 @@ import Amplify import Foundation -public enum GraphQLOperationType: String { - case mutation - case query - case subscription -} - public typealias GraphQLParameterName = String /// Represents a single directive GraphQL document. Concrete types that conform to this protocol must