The schema API

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

clear

How to clear schema information for a particular graph.

connection

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

config

How to configure graph schema.

describe

How to list schema information about a particular graph.

edgeLabel

How to create an edge label.

exists

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.

properties

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

propertyKey

How to create a property key.

vertexLabel

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, info@datastax.com