addV
Specify a vertex from a traversal.
Synopsis
g.addV('vertexLabel') .[ property ('property\_key') ... ]
Description
The addV()
step is a map of sideEffect.
A vertex is added from a traversal g using addV
.
A previously created vertex label must be specified.
Property key-value pairs may be optionally specified.
Examples
Create a vertex with a vertex label person
with the properties person_id
, name
, gender
, nickname
, and country
.
g.addV('person').
property('person_id', 'e7cd5752-bc0d-4157-a80f-7523add8dbcd' as UUID).
property('name', 'Julia CHILD').
property('gender','F').
property('nickname', ['Jay', 'Julia'] as Set).
property('country', [['USA', '1912-08-12' as LocalDate, '1944-01-01' as LocalDate] as Tuple, ['Ceylon', '1944-01-01' as LocalDate, '1945-06-01' as LocalDate] as Tuple, ['France', '1948-01-01' as LocalDate, '1960-01-01' as LocalDate] as Tuple, ['USA', '1960-01-01' as LocalDate, '2004-08-13' as LocalDate] as Tuple])