Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

uttkarsh.jain_159863 avatar image
uttkarsh.jain_159863 asked ·

How to remove an edge between two vertices from DSE schema

We have an edge between two vertices in datastax graph.

How can I remove the edge from the schema itself?

I tried this:

schema.edgeLabel("belongswihin").connection("poi","region").drop()

but there is no drop method to delete an edge like this.

I can't run:

schema.edgeLabel("belongswithin").drop()

as I am having the same edge being used between the other two vertices which I don't want to drop?

datastax communitydatastax enterprise server 6.7.4datastax graph
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

polandll avatar image
polandll answered ·

Same answer as I wrote in stackoverflow (https://stackoverflow.com/questions/57267698/how-to-remove-an-edge-between-two-vertices-from-dse-schema):


In DSE Graph, an EdgeLabel can be dropped, but not selectively for a particular connection between two VertexLabels. You don't say which version of DSE you are using, but I'm pretty certain you'll need to drop and rewrite the schema, then load your data again. If you are a DataStax customer, you might want to contact Support to see if there is any assistance they can provide.

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.