Skip to content

Commit

Permalink
test: fix nearObject with groupBy test
Browse files Browse the repository at this point in the history
  • Loading branch information
bevzzz committed Oct 25, 2024
1 parent 566844f commit 650a2e9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1602,6 +1602,8 @@ public void testGraphQLGetWithGroupBy() {
}).build();
// _additional
Field _additional = Field.builder().name("_additional").fields(new Field[]{group}).build();
// Property that we group by
Field ofDocument = Field.builder().name("ofDocument{__typename}").build();
// filter arguments
GroupByArgument groupBy = client.graphQL().arguments().groupByArgBuilder()
.path(new String[]{"ofDocument"}).groups(3).objectsPerGroup(10).build();
Expand All @@ -1612,7 +1614,8 @@ public void testGraphQLGetWithGroupBy() {
.withClassName(testData.PASSAGE)
.withNearObject(nearObject)
.withGroupBy(groupBy)
.withFields(_additional).run();
.withFields()
.withFields(ofDocument, _additional).run();
testData.cleanupWeaviate(client);
// then
assertThat(groupByResult).isNotNull();
Expand Down

0 comments on commit 650a2e9

Please sign in to comment.