Using express-cassandra i am generating an uuid by uuidFromString()
method. Is there any way to back it to its previous form.
Yes, just use the toString()
method on the Uuid
object you generated. For example:
var myUuid = Uuid.fromString('ce547c40-acf9-11e6-80f5-76304dec7eb7');
var myUuidString = myUuid.toString();
Since express-cassandra is just using the DataStax driver under the covers, you can see the Uuid
docs here:
http://docs.datastax.com/en/drivers/nodejs/3.0/module-types-Uuid.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With