qasaur / gremgo

A fast, efficient, and easy-to-use Go client for the Apache TinkerPop graph database stack
MIT License
98 stars 49 forks source link

[SCRIPT EVALUATION ERROR] on setting UUID #41

Open bobvanluijt opened 6 years ago

bobvanluijt commented 6 years ago

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

rossb83 commented 5 years ago

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.