Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GROUP BY to graphql cql-first #214

Open
polandll opened this issue Jul 1, 2022 · 0 comments
Open

Add GROUP BY to graphql cql-first #214

polandll opened this issue Jul 1, 2022 · 0 comments
Assignees

Comments

@polandll
Copy link
Contributor

polandll commented Jul 1, 2022

@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 polandll self-assigned this Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant