uuid-mongodb
uuid-mongodb copied to clipboard
string to LUUID
how to convert to LUUID from String? Is it possible?
@mrumaiz by LUUID, are you referring to Binary.SUBTYPE_UUID_OLD?
@mrumaiz by LUUID, are you referring to Binary.SUBTYPE_UUID_OLD?
Yes he is. I believe in MongoDB 4.2 they changed the previous version of UUID to Legacy UUID (LUUID) and renamed the subtype to SUBTYPE_UUID_OLD. So currently trying to parse those UUIDs will also fail at https://github.com/cdimascio/uuid-mongodb/blob/master/lib/index.js#L31