docs icon indicating copy to clipboard operation
docs copied to clipboard

Add GROUP BY to graphql cql-first

Open polandll opened this issue 3 years ago • 0 comments

@DisplayName("Should execute query with groupBy") public void groupBy(@TestKeyspace CqlIdentifier keyspaceId) { Map<String, Object> response = CLIENT.executeDmlQuery( keyspaceId, "{ readings(value: {id: 1}, groupBy: {month: true, year: true}) { " + "values { " + " id" + " year " + " month " + " totalValue: _decimal_function(name: "sum", args: ["value"]) } }" + "}");

polandll avatar Jul 01 '22 19:07 polandll