Skip to content

How to use Java code to delete graph indexes #4326

Answered by rngcntr
LiJie20190102 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @LiJie20190102!

The problem with your usage is that you are re-using the graphIndex object, which you created in a previous transaction. Any reference to an index only remains valid during the lifespan of the enclosing transaction. That's why the example you are following retrieves the index a second time by calling m.getGraphIndex("name").

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@LiJie20190102
Comment options

@li-boxuan
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by rngcntr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants