.drop() behavior confussion

I have a basic java app and I'm learning hot to send gremlin queries to a JanusGraph from that java app. I just played around with mkaing some nodes, but the .drop() method is not removing them all like I expected. What am I missing in this context?
No description
Solution:
This issue is addressed in lots of places but you probably just haven't come across them yet. You're missing a terminal step after the drop(). The terminal step actually executes the traversal...drop() is not such a step. You would likely use iterate() in this case as your terminal step. https://tinkerpop.apache.org/docs/current/reference/#terminal-steps
Jump to solution
1 Reply
Solution
spmallette
spmallette13mo ago
This issue is addressed in lots of places but you probably just haven't come across them yet. You're missing a terminal step after the drop(). The terminal step actually executes the traversal...drop() is not such a step. You would likely use iterate() in this case as your terminal step. https://tinkerpop.apache.org/docs/current/reference/#terminal-steps
Want results from more Discord servers?
Add your server