1
0
Fork 0

Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel

This commit is contained in:
a-brandt 2013-03-13 14:20:15 +01:00
commit 32a8ab4cb4
1 changed files with 5 additions and 1 deletions

View File

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