Open creatorrr opened 2 weeks ago
This query:
{ ?[x] <- [[rand_uuid_v4()]] :create _t1 { x } } { ?[m, x] := *_t1{ x }, m = {"x": x} }
returns:
{"x":[121,28,28,145,81,157,79,140,149,37,235,235,103,33,105,109]} 791c1c91-519d-4f8c-9525-ebeb6721696d
but should return the uuidv4 string instead. Currently I was unable to find a way to output the string :(
for anyone else who ran into this, current workaround I am using (in python):
from uuid import UUID uuid_int_list_to_uuid4 = lambda data: UUID(bytes=b"".join([i.to_bytes(1, 'big') for i in data]))
This query:
returns:
but should return the uuidv4 string instead. Currently I was unable to find a way to output the string :(