How to designate a vertex to use when loading data from a data file.


vertex "*fieldName*", {
  label "*labelName*"
  key "*fieldName*"


Each record read from an input data file will have vertex information. vertex defines the label and key for a vertex that will be read. If no property values are set, all properties in the record will be input.


Set the parameters for a vertex in a mapping script:

vertex "recipe", {
  label "recipe"
  key "name"

For this vertex, each vertex created with the vertex label recipe will be created from a record in the input file in which the vertex label is defined as recipe and the key field as name.

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,