I am using Datastax Dse grap (5.x) java driver version 1.1.1 beta.
My use case is that I can not allow more than one vertex to have same vertex label.
For that I want to create index on vertex label.
I found this below code on Datastax official website schema.vertexLabel('recipe').index('byRecipe').secondary().by('name').add()
But, this datastax tutorial lacks two things
- How to create index on vertex label
- How to execute this using java
My question is how to index Dse graph on Vertex label using java?
To implement this, you would execute the example as a graph statement. It is typically recommended to create your schema outside of your application, traversal code base.