Skip to content

Commit

Permalink
Merge pull request #252 from LukasVice/lab04-fix-solutions-serverless…
Browse files Browse the repository at this point in the history
…-cosmos

Lab 04: Fix solution according to issue #250 with serverless cosmos
  • Loading branch information
Sidney Andrews authored Jun 15, 2021
2 parents 9fb18f7 + f318403 commit ac7017f
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 ac7017f

Please sign in to comment.