jbmusso / gremlin-javascript

JavaScript tools for graph processing in Node.js and the browser inspired by the Apache TinkerPop API
MIT License
214 stars 63 forks source link

unsure how to set the label on a vertex #64

Closed batwicket closed 7 years ago

batwicket commented 7 years ago

hi..

I am trying to set the label on a vertex using addV(), but perhaps have the syntax wrong or maybe I should be using a property like 'name'. The intent is to use a label prefix, such as 'SYS_', to separate the vertices into categories so that access permissions can be easily applied. Probably I've missed some docs. Any help would be appreciated.

The setup to reproduce, which is quite minimal, is attached. The README provides steps. gremlin.zip

thanks

batwicket commented 7 years ago

Not a problem. Issue # 16 addresses this: g.addV(label, ${lbl})

jbmusso commented 7 years ago

Glad you figured it out! Feel free to post a Gist or a link to a public repository, rather than a .zip file. This is much more convenient :).