Skip to content

Commit 02e6a51

Browse files
committed
Fix bug where boolean comparison was not implemented for map.
1 parent b4d1b78 commit 02e6a51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/GraphQL/Map/Map.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,8 @@ public func == (lhs: Map, rhs: Map) -> Bool {
634634
switch (lhs, rhs) {
635635
case (.null, .null):
636636
return true
637+
case let (.bool(l), .bool(r)) where l == r:
638+
return true
637639
case let (.number(l), .number(r)) where l == r:
638640
return true
639641
case let (.string(l), .string(r)) where l == r:

0 commit comments

Comments
 (0)