Use of variable with shortest

it looks like uid function not supported in shortest function.

you can only pass shortest(from: 0x01,to : 0x02) .
so , you need split your query in two parts.
firsrt get the uid .
then, use the uid , find the shortest path.