0

I'm a bit new to gremlin and graph db's in general. I'm a bit confused by these two methods which appear to be doing the same thing but the syntax is different. Plus one of these works when I'm using Gremlin Server while the other gives me an exception.

Ujjwal Pathak
  • 646
  • 12
  • 21

1 Answers1

1

Those two bits of Gremlin are identical, the first is the just the long hand form. If I recall the history correctly, g.addV(String) was added to provide symmetry with addE(String). You should not be getting an error on either method, but you should prefer the addV(String).

stephen mallette
  • 45,298
  • 5
  • 67
  • 135