arangoDB.db(databaseName).createCollection(collectionName); logger.info("Collection created: " + collectionName); } catch (ArangoDBException e) {
public static void checkCollection(String bucketName, ArangoDB arangoDB, String namespace) { checkDatabase(bucketName, arangoDB); List<String> collections = arangoDB.db(bucketName) .getCollections().stream() .map(CollectionEntity::getName) .collect(toList()); if (!collections.contains(namespace)) { arangoDB.db(bucketName).createCollection(namespace); } }