Due to lack of time, I will insert a comment that provided a valid result and later modified the answer to make it more understandable.
That's right, if you have UUID 43d597d7-2323-325a-90fc-21fa5947b9f3 in this string format already in your JS application, you should send the following query to MySQL:
SELECT col FROM table WHERE uuid_col = UNHEX(REPLACE('43d597d7-2323-325a-90fc-21fa5947b9f3', '-', ''));
If you want to extract data and have a UUID in a readable format, you need to convert it to hexadecimal notation.
SELECT HEX(uuid_col) FROM table;
This will give you a UUID without a dash. It looks like the node-uuid.parse works if you give it the sixth line without a dash.
source share