Skip to content

Commit 32a89c3

Browse files
authored
Fix crash when two types with the same name are registered in a Schema
Same name yes, but not the same fully qualified name (including the module name and potential nesting)
1 parent 927ebb1 commit 32a89c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Graphiti/Definition/AnyType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ final class AnyType: Hashable {
1010
}
1111

1212
static func == (lhs: AnyType, rhs: AnyType) -> Bool {
13-
return lhs.hashValue == rhs.hashValue
13+
return lhs.type == rhs.type
1414
}
1515
}

0 commit comments

Comments
 (0)