Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/GraphQL.Primitives/GraphQLRequest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;

namespace GraphQL {
Expand Down Expand Up @@ -64,7 +65,7 @@ public override bool Equals(object? obj) {
public virtual bool Equals(GraphQLRequest? other) {
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return EqualityComparer<Dictionary<string,object>>.Default.Equals(this, other);
return this.Count == other.Count && !this.Except(other).Any();
}

/// <summary>
Expand Down