Hi, You can also do:
myRelation = g.addEdge(nodeA,nodeB,'KNOWS',[key:'value',key2:123]) As such, put a Map into the definition. A nice place to find these shorthand methods is: https://github.com/tinkerpop/gremlin/wiki/Gremlin-Methods See ya, Marko. http://markorodriguez.com On Jun 9, 2011, at 7:00 AM, Pierre De Wilde wrote: > Hi, > > I have noticed a subtle typo in webadmin console cheat sheet ( > http://localhost:7474/webadmin/#/console/): > > Create relation > >> myRelation = g.addEdge(edgeProps, refNode, secondNode, 'KNOWS') > > > will create the edge without the properties. The correct syntax is: > > > Create relation > >> myRelation = g.addEdge(refNode, secondNode, 'KNOWS', edgeProps) > > See > https://github.com/tinkerpop/gremlin/blob/master/src/main/groovy/com/tinkerpop/gremlin/loaders/GraphLoader.groovy > for supported .addEdges() definitions. > > Pierre > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user