mirror of https://gitee.com/bigwinds/arangodb
start implement edges()
This commit is contained in:
parent
6c496866b4
commit
24871b64ef
|
@ -4,8 +4,8 @@
|
|||
# remove-on-drop = true
|
||||
|
||||
[server]
|
||||
disable-authentication = true
|
||||
endpoint = tcp://localhost:8529
|
||||
disable-authentication = false
|
||||
endpoint = tcp://0.0.0.0:8888
|
||||
threads = 5
|
||||
# reuse-address = false
|
||||
|
||||
|
@ -15,7 +15,7 @@ threads = 3
|
|||
[javascript]
|
||||
startup-directory = ./js
|
||||
app-path = ./js/apps
|
||||
frontend-development = false
|
||||
frontend-development = true
|
||||
|
||||
[ruby]
|
||||
action-directory = ./mr/actions/system
|
||||
|
@ -29,8 +29,8 @@ severity = human
|
|||
username = root
|
||||
password =
|
||||
|
||||
disable-dispatcher-kickstarter = true
|
||||
disable-dispatcher-frontend = true
|
||||
disable-dispatcher-kickstarter = false
|
||||
disable-dispatcher-frontend = false
|
||||
data-path = ./cluster/data
|
||||
log-path = ./cluster/log
|
||||
agent-path = ./bin/etcd-arango
|
||||
|
|
|
@ -134,4 +134,4 @@
|
|||
}
|
||||
|
||||
});
|
||||
}());
|
||||
}());
|
|
@ -140,9 +140,34 @@ var _directedRelationDefinition = function (relationName, fromVertexCollections,
|
|||
};
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief load a graph.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var _graph = function() {
|
||||
return new Graph();
|
||||
};
|
||||
|
||||
|
||||
var Graph = function() {
|
||||
|
||||
};
|
||||
|
||||
Graph.prototype.edges = function(vertexId) {
|
||||
var edgeCollections = this.edgeCollections();
|
||||
|
||||
edgeCollections.forEach(
|
||||
function(edgeCollection) {
|
||||
edgeCollection.documents().forEach(
|
||||
function(document) {
|
||||
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- MODULE EXPORTS
|
||||
|
@ -150,7 +175,7 @@ var _directedRelationDefinition = function (relationName, fromVertexCollections,
|
|||
|
||||
exports._undirectedRelationDefinition = _undirectedRelationDefinition;
|
||||
exports._directedRelationDefinition = _directedRelationDefinition;
|
||||
|
||||
exports._graph = _graph;
|
||||
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue