*vertex1*.property( ['*key*', '*value*'] [,...], [, '*property_id*'])


Property data is inserted using property. Property key-value pairs are specified. A property_id may be specified, to upsert data for a multiple cardinality property to prevent creation of a new property.


Create a property with values for gender and nickname.

jamieOliver = g.V().has('person', 'name', 'Jamie Oliver').next()'gender', 'M').property('nickname', 'jimmy')

Update the property gender for the vertex juliaChild specifying a property with a property id of 2c85fabd-7c49-4b28-91a7-ca72ae53fd39:

uuid = java.util.UUID.fromString('2c85fabd-7c49-4b28-91a7-ca72ae53fd39')'gender', 'F',, uuid)'

Note that a conversion function must be used to convert a string to the UUID. is a literal that must be included in the statement.

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,