Skip to content

Commit 68e6b1f

Browse files
committed
fix GraphQLRequest.Equals
1 parent 86424d5 commit 68e6b1f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/GraphQL.Primitives/GraphQLRequest.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ public override bool Equals(object? obj) {
6464
public virtual bool Equals(GraphQLRequest? other) {
6565
if (ReferenceEquals(null, other)) return false;
6666
if (ReferenceEquals(this, other)) return true;
67-
return Query == other.Query
68-
&& OperationName == other.OperationName
69-
&& EqualityComparer<object>.Default.Equals(Variables, other.Variables);
67+
return EqualityComparer<Dictionary<string,object>>.Default.Equals(this, other);
7068
}
7169

7270
/// <summary>

0 commit comments

Comments
 (0)