Closed juhasev closed 6 years ago
Trying to pass in simple variables into TraversalBuilder. By example:
$user_id = 10; $command = $traversalBuilder ->g() ->V() ->hasLabel("'users'") ->has("'users_id'", "$user_id") ->getTraversal();
Should produce
g.V().hasLabel('users').has('users_id', 10)
But instead I get literal variable name in the query:
g.V().hasLabel('users').has('users_id', $user_id)
Not sure what is going on but digging deeper.
Figured it out... Would help if you don't pass your variable enclosed single quotes :-)
Trying to pass in simple variables into TraversalBuilder. By example:
Should produce
But instead I get literal variable name in the query:
Not sure what is going on but digging deeper.