You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently discovered that GraphQLOperation hashing does not differentiate operations as much as I thought it would. In fact, if two operations both have no variables, they have the same hash value, even if they're entirely different operation types.
This is due to the way hash(into:) is implemented for GraphQLOperation
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.
Question
I recently discovered that
GraphQLOperation
hashing does not differentiate operations as much as I thought it would. In fact, if two operations both have no variables, they have the same hash value, even if they're entirely different operation types.This is due to the way
hash(into:)
is implemented forGraphQLOperation
This seems like an unfortunate design decision. A few questions for the maintainers of the project:
I've already updated my usage of the hash value based on this finding, but wanted to create an issue in case it may affect others.
The text was updated successfully, but these errors were encountered: