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); }