The schema API

schema commands are used to create schema such as vertex labels, edge labels, property keys and indexes.


How to clear schema information for a particular graph.


How to create an adjacency between two vertices with an edge label creation


How to configure graph schema.


How to list schema information about a particular graph.


How to create an edge label.


How to identify if a schema element exists.

index - edge index

How to add an edge index.

index - property index

How to add a property index.

index - vertex index

How to add a vertex index.

partitionKey - clusteringKey

How to define a partition key or clustering key.


How to add properties to a vertex label or edge label.


How to create a property key.


How to create a vertex label.

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,