isNew()
Synopsis
isNew()
Description
The isNew()
method will identify that vertices or edges need creation during the loading process.
This method is used instead of the graphloader
parameter load_new
when only a portion of the loading needs identification.
load_new
requires either the entire creation of all vertices and edges during loading to be true or false.
Examples
Identify that the edges between existing author vertices and existing book vertices will be created as new edges during the loading into the database:
load(authorBookInput).asEdges {
isNew()
label "authored"
outV "aname", { label "author"
key "name"
exists()
}
inV "bname", {
label "book"
key "name"
exists()
}
}