graph icon indicating copy to clipboard operation
graph copied to clipboard

Update documentation on deprecated addOutE method

Open cedtwo opened this issue 5 years ago • 2 comments

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.

cedtwo avatar Aug 14 '20 07:08 cedtwo

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

krlawrence avatar Aug 19 '20 02:08 krlawrence

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

krlawrence avatar Aug 28 '20 14:08 krlawrence

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.

krlawrence avatar Sep 23 '23 18:09 krlawrence