mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
This commit is contained in:
commit
32a8ab4cb4
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue