Skip to content

Add GROUP BY to graphql cql-first #214

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions