Skip to content

Commit

Permalink
fix: GraphQLOperation hash uniqueness (apollographql/apollo-ios-dev…
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari authored and gh-action-runner committed Oct 31, 2024
1 parent 0adf025 commit 0ae62c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/ApolloAPI/GraphQLOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ public extension GraphQLOperation {
}

func hash(into hasher: inout Hasher) {
hasher.combine(Self.operationType)
hasher.combine(Self.operationName)
hasher.combine(__variables?._jsonEncodableValue?._jsonValue)
}
}
Expand Down

0 comments on commit 0ae62c4

Please sign in to comment.