1
0
Fork 0

fixed check

This commit is contained in:
gschwab 2014-05-26 13:43:47 +02:00
parent d01fa951c2
commit c6c9335442
1 changed files with 3 additions and 3 deletions

View File

@ -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.";
}