krlawrence / graph

Practical Gremlin - An Apache TinkerPop Tutorial
Apache License 2.0
836 stars 253 forks source link

Update documentation on deprecated addOutE method #199

Closed ghost closed 1 year ago

ghost commented 4 years ago

Section 4.5.1 of the book notes that both the addOutE and addE methods can be used to define the direction of an edge. However, the example for addOutE,

g.V().has('code','XYZ').as('a').V().has('code','DFW').addOutE('route','a')

raises the error:

No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.DefaultGraphTraversal.addOutE() is applicable for argument types: (String, String) values: [route, a]

According to the deprecation list here, the method has been replaced by the addE method, and documentation makes no reference to addOutE.

krlawrence commented 4 years ago

I'll look into this and make the necessary changes.

krlawrence commented 4 years ago

Removed the example, changed and improved the narrative and added a tip that the addOutE step was removed from the language.

krlawrence commented 1 year ago

Closing as this is fixed and work has now started on the second edition. There will likely be one final release of the v283 first edition line before the V2 branch becomes the second edition. That release will include these fixes.