gremgo icon indicating copy to clipboard operation
gremgo copied to clipboard

[SCRIPT EVALUATION ERROR] on setting UUID

Open bobvanluijt opened this issue 6 years ago • 1 comments

The following results in the evaluation error: g.addV(" + thing.AtClass + ").property(T.id, uuid)

The issue lies in T.id but I'm not sure how to set this value.

thanks

bobvanluijt avatar Jul 04 '18 09:07 bobvanluijt

the proper gremlin syntax for what you are trying to do is

g.addV('label').property(id, 'uuid')

Note that "label" is in single quotes, "uuid" is in single quotes, and id is not. I have gotten this to work, so I think the script evaluation error that is being returned is due to incorrect gremlin syntax.

rossb83 avatar Nov 12 '18 20:11 rossb83