From 83684d8c2144df295a6c281178803ad8a70f1937 Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Wed, 13 Mar 2013 13:45:32 +0100 Subject: [PATCH] Edge Collections can now be created by giving the string edge as type --- js/actions/system/api-collection.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/actions/system/api-collection.js b/js/actions/system/api-collection.js index 6382bb43c7..e7029970a0 100644 --- a/js/actions/system/api-collection.js +++ b/js/actions/system/api-collection.js @@ -205,7 +205,11 @@ function post_api_collection (req, res) { try { var collection; - + if (typeof(type) === "string") { + if (type.toLowerCase() === "edge") { + type = arangodb.ArangoCollection.TYPE_EDGE; + } + } if (type === arangodb.ArangoCollection.TYPE_EDGE) { collection = arangodb.db._createEdgeCollection(name, parameter); }