~~(_:_:)

Performs a type-aware equivalence comparison by parsing each operand and recursively comparing the elements. Returns false if either operand fails to parse.

BSON.Document (ext).swift:42
static func ~~ (lhs: `Self`, rhs: `Self`) -> Bool

Some documents that do not compare equal under byte-wise == comparison may compare equal under this operator, due to normalization of deprecated BSON variants. For example, a value of the deprecated symbol type will compare equal to a string(_:) value with the same contents.