Naming multiple vertices

I've got a list of vertices and a list of unique names. I'm looking to apply one name to each node, but struggling with the syntax.

I think I should be using some sort of query builder where I can do:

names.forEach(index, name)

I'm expecting each query to involve select() where() has() index(), but have been having some difficulties in figuring out how to piece these together in gremlin js
Was this page helpful?