How compare UUID in mongodb-shell script ?
UUID is Object type without equals method, can’t compare with ‘==’ or ‘===’. Comparing .toString() also not work correctly.
@Kurako Something like uuid1.toString('hex') === uuid2.toString('hex')
should work here
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.