Skip to content

Commit 4591a80

Browse files
committed
Local Unit Testing & Debugging
1 parent c1adf20 commit 4591a80

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/ghoelzer_rht/cosmosdb/demo/CityByCountryStateFromQueryString.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ public HttpResponseMessage run(
3535
methods = {HttpMethod.GET, HttpMethod.POST},
3636
authLevel = AuthorizationLevel.ANONYMOUS)
3737
HttpRequestMessage<Optional<String>> request,
38-
@CosmosDBInput(name = "cities_demo",
39-
databaseName = "ghasp-java-demo",
40-
collectionName = "Items",
38+
@CosmosDBInput(name = "database",
39+
databaseName = "ghasp_java_demo",
40+
collectionName = "cities_demo",
4141
id = "{Query.id}",
42-
partitionKey = "{Query.state_code}/{Query.country_code}",
42+
partitionKey = "{Query.state_code}",
4343
connectionStringSetting = "Cosmos_DB_Connection_String")
4444
Optional<String> item,
4545
final ExecutionContext context) {
4646

4747
// Item list
4848
context.getLogger().info("Parameters are: " + request.getQueryParameters());
49-
context.getLogger().info("String from the database is " + item.get());
49+
//context.getLogger().info("String from the database is " + item.get());
5050

5151
// Convert and display
5252
if (!item.isPresent()) {

0 commit comments

Comments
 (0)