kyano_k
kyano_k
ATApache TinkerPop
Created by kyano_k on 4/6/2023 in #questions
Multiple next() steps in a traversal
Is there a way to exit traversals at different steps? I tried using the next() step on a static, but it failed.
3 replies
ATApache TinkerPop
Created by kyano_k on 2/17/2023 in #questions
store edges of a node in a sorted manner
Is there any way for me to store the edges of a specific node in a sorted manner? Is there any Gremlin based database that implements indices perhaps?
23 replies
ATApache TinkerPop
Created by kyano_k on 2/1/2023 in #questions
addV with existing ID doesn't throw error
I noticed when I call addV(newLabel) with an existing ID but a different label, it will add the newLabel and the new properties defined to the existing vertex. This is verrrry undesirable behavior, I would need to it throw a constrain violation. Any thoughts?
18 replies
ATApache TinkerPop
Created by kyano_k on 1/24/2023 in #questions
Option to be a range of values
Is there a way to provide an option after a choose step that includes a range of values in it? For example, option(1..100, ...)
4 replies
ATApache TinkerPop
Created by kyano_k on 1/24/2023 in #questions
Ciel function in Math step doesn't seem to work
Ciel function in Math step doesn't seem to work.
__.values(VERTEX_PROPERTY_RATE)
.as('rate') .select('product')
.select('price')
.as('price')
.select('product')
.select('quantity')
.math('price * _')
// .math('ciel _')
.math('_ * rate')
__.values(VERTEX_PROPERTY_RATE)
.as('rate') .select('product')
.select('price')
.as('price')
.select('product')
.select('quantity')
.math('price * _')
// .math('ciel _')
.math('_ * rate')
This works perfectly fine (returns a number), but when I uncomment the ciel step, then I get a weird error that ciel only takes number values and I'm passing it null
7 replies
ATApache TinkerPop
Created by kyano_k on 1/17/2023 in #questions
Use statement from choose and option that check only if a value has been yielded
Hey everyone, .choose( .out(EDGE_TOUCHPOINT_ACTION_ITEM) .hasLabel(VERTEX_LABEL_ACTION_ITEM) .hasLabel(this.SHOPIFY) .has(VERTEX_PROPERTY_ACTION, 'storeWide') .has(VERTEX_PROPERTY_ACTIVE, true), ) .option(.hasNext(), __.as('actionItemStoreWide')) I'm trying to use choose + option to just figure out if the traversal in the choose step yields a value. If it does then create create an alias for it. I know what I currently have won't work, but I added for some extra context. Thanks in advance!
32 replies