thinkaurelius / titan

Distributed Graph Database
http://titandb.io
Apache License 2.0
5.25k stars 1.01k forks source link

GettingStarted: select() not working #1369

Open Isabaellchen opened 7 years ago

Isabaellchen commented 7 years ago

It seems that titan does not know which select method to use:

gremlin> g.V(pluto).out('brother').as('god').out('lives').as('place').select()
Could not find which method select() to invoke from this list:
  public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal#select(java.lang.String)
  public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal#select(org.apache.tinkerpop.gremlin.process.traversal.Pop, java.lang.String)
  public transient org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal#select(java.lang.String, java.lang.String, [Ljava.lang.String;)
  public transient org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal#select(org.apache.tinkerpop.gremlin.process.traversal.Pop, java.lang.String, java.lang.String, [Ljava.lang.String;)
pluradj commented 7 years ago

There is an error in the docs. Try these instead:

g.V(pluto).out('brother').as('god').out('lives').as('place').select('god', 'place')
g.V(pluto).out('brother').as('god').out('lives').as('place').select('god', 'place').by('name')