From c6c9335442058dec63aa4bb80be17f1b13bc8429 Mon Sep 17 00:00:00 2001 From: gschwab Date: Mon, 26 May 2014 13:43:47 +0200 Subject: [PATCH] fixed check --- js/common/modules/org/arangodb/general-graph.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/common/modules/org/arangodb/general-graph.js b/js/common/modules/org/arangodb/general-graph.js index 75816caf3d..7c890230b3 100644 --- a/js/common/modules/org/arangodb/general-graph.js +++ b/js/common/modules/org/arangodb/general-graph.js @@ -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."; }