mirror of https://gitee.com/bigwinds/arangodb
fixed check
This commit is contained in:
parent
d01fa951c2
commit
c6c9335442
|
@ -874,7 +874,7 @@ Graph.prototype._EDGES = function(vertexId) {
|
|||
throw vertexId + " is not a valid id";
|
||||
}
|
||||
var collection = vertexId.split("/");
|
||||
if (!db._exists(collection)) {
|
||||
if (!db._collection(collection)) {
|
||||
throw collection + " does not exists.";
|
||||
}
|
||||
|
||||
|
@ -898,7 +898,7 @@ Graph.prototype._INEDGES = function(vertexId) {
|
|||
throw vertexId + " is not a valid id";
|
||||
}
|
||||
var collection = vertexId.split("/");
|
||||
if (!db._exists(collection)) {
|
||||
if (!db._collection(collection)) {
|
||||
throw collection + " does not exists.";
|
||||
}
|
||||
|
||||
|
@ -923,7 +923,7 @@ Graph.prototype._OUTEDGES = function(vertexId) {
|
|||
throw vertexId + " is not a valid id";
|
||||
}
|
||||
var collection = vertexId.split("/");
|
||||
if (!db._exists(collection)) {
|
||||
if (!db._collection(collection)) {
|
||||
throw collection + " does not exists.";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue