Skip to content

Add GROUP BY to graphql cql-first #214

@polandll

Description

@polandll

@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"]) } }"
+ "}");

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions