Skip to content

Commit

Permalink
feat(amplify): make GraphQLOperationType extends from String (#3719)
Browse files Browse the repository at this point in the history
  • Loading branch information
5d authored May 29, 2024
1 parent cf7fe31 commit 7e5883a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion Amplify/Categories/API/Request/GraphQLOperationType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

/// The type of a GraphQL operation
public enum GraphQLOperationType {
public enum GraphQLOperationType: String {
/// A GraphQL Query operation
case query

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e5883a

Please sign in to comment.