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()
    }
}

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com