diff --git a/java/working-with-cql/query-execution.md b/java/working-with-cql/query-execution.md index 8f206e176..d4f1416d1 100644 --- a/java/working-with-cql/query-execution.md +++ b/java/working-with-cql/query-execution.md @@ -112,7 +112,9 @@ To query `BooksView` in Java, run a select statement and provide values for all ```java CqnSelect query = Select.from("BooksView"); -var params = Map.of("minStock", 100); + +Map paramValues = new HashMap<>(); +paramValues.put("minStock", 100); Result result = service.run(query, params); ```