red
red
ATApache TinkerPop
Created by red on 10/14/2024 in #questions
Naming multiple vertices
Sure, I can send a more specific code example when i'm back in work on monday, but i'm effectively copying a tree a number of times equal to the number of names i'm given. I've got a base query where I'm starting at a given node (the root), repeating out (as elements) - there is some more to this where i'm traversing out more to duplicate other data too that I'm skipping out in this example I've then got a sub query where I select the nodes from the base query, and create new nodes and edges, and copy properties, and add edges connecting the original to the duplicates. I'm doing a baseQuery.repeat(subQuery).times(numberOfNames) to create a number of copies of these trees. The duplicated roots all need to then have their name properties updated - at this point they'll all have the same as the original that i've copied. I am querying and storing those duplicated root nodes and updating their names. Finally i'm looking to return all original nodes and the new nodes that have been created such that I know which node each was copied from.
9 replies
ATApache TinkerPop
Created by red on 10/22/2024 in #questions
Profiling Neptune from javascript
thanks for your help, i'll have a look at the aws sdk or resort to the https endpoint directly
5 replies
ATApache TinkerPop
Created by red on 10/14/2024 in #questions
Naming multiple vertices
but this didn't seem like a great approach so i was looking to find a better one
9 replies
ATApache TinkerPop
Created by red on 10/14/2024 in #questions
Naming multiple vertices
const my_names = ["name 1", "name 2", "name 3"]; my_names.forEach((name, idx) => { query = query.sideEffect( __.select('store with 3 vertices') .unfold() .range(idx, idx + 1) .unfold() .property(single, 'name', name) ); });
9 replies
ATApache TinkerPop
Created by red on 10/14/2024 in #questions
Naming multiple vertices
Hey, so I've got some vertices I can access and a list of names, both of the same length. I was to add a name property to each one, so that a different value is assigned to each vertex I've currently got this working in javascript using:
9 replies
ATApache TinkerPop
Created by red on 9/27/2024 in #questions
Vertex hashmaps
great, thanks could you point me to an example of the aggregate step doing some things like this?
7 replies