From fdd2b6f79157fcdae1b9c15cfa7cef2c23fe906b Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Mon, 16 Jun 2014 09:09:05 +0200 Subject: [PATCH] Moved newest version of general graph into web interface --- .../js/modules/org/arangodb/general-graph.js | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/js/apps/system/aardvark/frontend/js/modules/org/arangodb/general-graph.js b/js/apps/system/aardvark/frontend/js/modules/org/arangodb/general-graph.js index 39c005ef33..6424440fec 100644 --- a/js/apps/system/aardvark/frontend/js/modules/org/arangodb/general-graph.js +++ b/js/apps/system/aardvark/frontend/js/modules/org/arangodb/general-graph.js @@ -1010,7 +1010,7 @@ AQLGenerator.prototype._getLastRestrictableStatementInfo = function() { /// /// Restriction of a query is only valid for collections known to the graph: // -/// @EXAMPLE_ARANGOSH_OUTPUT{generalGraphFluentAQLRestricted} +/// @EXAMPLE_ARANGOSH_OUTPUT{generalGraphFluentAQLRestrictedUnknown} /// var examples = require("org/arangodb/graph-examples/example-graph.js"); /// var g = examples.loadGraph("social"); /// var query = g._vertices({name: "Alice"}); @@ -1404,7 +1404,23 @@ var _directedRelationDefinition = function ( }; //////////////////////////////////////////////////////////////////////////////// -/// @brief create a list of all graph names +/// @startDocuBlock JSF_general_graph_list_call +/// `general-graph._list()` +/// *List all graphs.* +/// @endDocuBlock +/// +/// @startDocuBlock JSF_general_graph_list_info +/// Lists all graph names stored in this database. +/// +/// @EXAMPLES +/// @endDocuBlock +/// @startDocuBlock JSF_general_graph_list_examples +/// +/// @EXAMPLE_ARANGOSH_OUTPUT{generalGraphList} +/// var graph = require("org/arangodb/general-graph"); +/// graph._list(); +/// @END_EXAMPLE_ARANGOSH_OUTPUT +/// @endDocuBlock //////////////////////////////////////////////////////////////////////////////// var _list = function() { @@ -2837,7 +2853,7 @@ Graph.prototype._addOrphanCollection = function(vertexCollection, createCollecti /// var examples = require("org/arangodb/graph-examples/example-graph.js"); /// var ed1 = examples._directedRelationDefinition("myEC1", ["myVC1"], ["myVC2"]); /// var g = examples._create("myGraph", [ed1]); -/// g._addOrphanCollection("myVC3, true); +/// g._addOrphanCollection("myVC3", true); /// g._getOrphanCollections(); /// @END_EXAMPLE_ARANGOSH_OUTPUT /// @@ -2862,12 +2878,12 @@ Graph.prototype._getOrphanCollections = function() { /// /// @EXAMPLES /// -/// @EXAMPLE_ARANGOSH_OUTPUT{general_graph__getOrphanCollections} +/// @EXAMPLE_ARANGOSH_OUTPUT{general_graph__removeOrphanCollections} /// var examples = require("org/arangodb/graph-examples/example-graph.js"); /// var ed1 = examples._directedRelationDefinition("myEC1", ["myVC1"], ["myVC2"]); /// var g = examples._create("myGraph", [ed1]); -/// g._addOrphanCollection("myVC3, true); -/// g._addOrphanCollection("myVC4, true); +/// g._addOrphanCollection("myVC3", true); +/// g._addOrphanCollection("myVC4", true); /// g._getOrphanCollections(); /// g._removeOrphanCollection("myVC3"); /// g._getOrphanCollections();