Hi Bang, The sentence should probably read: "This can drop all collections contained in the graph as long as they are not used within other graphs. To drop the collections only belonging to this graph, the optional parameter *drop-collections* has to be set to *true*."
Does that better explain the behaviour? I will change this sentence then. Cheers, willi On Wednesday, July 13, 2016 at 2:08:32 PM UTC+2, The Bang Nguyen wrote: > > Hi all, > > I'm sorry if this question is not relevant here. > > I'm learning ArangoDB at the moment. However I got confused by the > document when deleting the graph. > Here is the link: > https://docs.arangodb.com/3.0/Manual/Graphs/GeneralGraphs/Management.html#remove-a-graph > > It says that > "A graph can be dropped by its name. This will automatically drop all > collections contained in the graph as long as they are not used within > other graphs. To drop the collections, the optional parameter > *drop-collections* can be set to *true*." > > However, the example shows the difference. > > Drop a graph and keep collections: > > arangosh> var graph_module = require("@arangodb/general-graph"); > arangosh> graph_module._drop("social");true > arangosh> db._collection("female"); > [ArangoCollection 16361, "female" (type document, status loaded)] > arangosh> db._collection("male"); > [ArangoCollection 16363, "male" (type document, status loaded)] > arangosh> db._collection("relation"); > [ArangoCollection 16365, "relation" (type edge, status loaded)] > > arangosh> var graph_module = require("@arangodb/general-graph"); > arangosh> graph_module._drop("social", true);true > arangosh> db._collection("female");null > arangosh> db._collection("male");null > arangosh> db._collection("relation");null > > As the document said, I expect in first example the collections will get > deleted, however it is not. > > Could someone please explain it? > > Thank you in advance, > Bang > > -- You received this message because you are subscribed to the Google Groups "ArangoDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
