Re: [TinkerPop] Re: More higher order constructs?

2016-11-29 Thread Stephen Mallette
I like the general direction of this idea. Turning "recipes" into steps would probably be a welcome addition for most users. I think it's worth creating a ticket to track it for something in the future. On Wed, Nov 23, 2016 at 8:36 AM, Florian Hockmann wrote: > Hi, > > there are some use cases /

Re: More higher order constructs?

2016-11-23 Thread Florian Hockmann
Hi, there are some use cases / patterns that are needed by many users and I think it is a good idea to support them directly in TinkerPop with such higher-order patterns. For me personally, I would really appreciate getOrCreate steps for vertices and edges and also some upsert step. Both are a

More higher order constructs?

2016-11-23 Thread Marko Rodriguez
Hi, g.V(1).as(‘a’). V(2).as(‘b’). shortestPath().from(‘a’).to(‘b’). by(outE(‘knows’).has(’since’,lt(2010)).inV()). path() Is equivalent to: g.V(1).as(‘a’). V(2).as(‘b’). repeat(outE(‘knows’).has(’since’,lt(2010)).inV()).until(where(‘a’)).limit(1). path() However, for the Gremlin-J