Skip to content

Commit

Permalink
Lab 04: Fix solution according to issue #250 with serverless cosmos
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvice authored Jun 15, 2021
1 parent 9fb18f7 commit f318403
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ public static async Task Main(string[] args)
Database database = await client.CreateDatabaseIfNotExistsAsync("Retail");

Container container = await database.CreateContainerIfNotExistsAsync("Online",
partitionKeyPath: $"/{nameof(Model.Category)}",
throughput: 1000
partitionKeyPath: $"/{nameof(Model.Category)}"
);

int count = 0;
Expand All @@ -42,4 +41,4 @@ public static async Task Main(string[] args)

await Console.Out.WriteLineAsync($"Total Azure Cosmos DB Documents: {count}");
}
}
}

0 comments on commit f318403

Please sign in to comment.