internal static async Task Clear(IArangoDatabase db, string collectionName, CollectionType type = CollectionType.Document) { if ((await db.ListCollectionsAsync()).Any(c => c.Name == collectionName)) { await db.DropCollectionAsync(collectionName); } await db.CreateCollectionAsync(collectionName, type : type); }