I voted to close this as I thought more details were required, but I think I realize the problem. In many ways the question could be closed as more of a "duplicate" as many Gremlin oriented questions tend to have this answer: You need to iterate your traversal.
The following line does nothing:
g.AddV("person").Property("name", "marko");
All it does is create a traversal (i.e. an Iterator
). It does not execute it. To execute you must iterate it with some form of terminal step. Since you are aren't doing anything with the result you should probably use iterate()
like:
g.AddV("person").Property("name", "marko").iterate();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…