Skip to content

Commit f9fa810

Browse files
committed
fixes
1 parent b056571 commit f9fa810

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

examples/src/test/kotlin/BuildersDataClassTest.kt

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -232,25 +232,4 @@ internal class BuildersDataClassTest {
232232
assertEquals(93.33333333333333, r.average)
233233
}
234234
}
235-
236-
@Test
237-
fun aggregatesCountTest() = runBlocking {
238-
239-
val collection = database.getCollection<Student>("students")
240-
241-
val students = listOf(
242-
Student("Sandra Nook", listOf("Alvarez", "Gruber"),85.7),
243-
Student("Paolo Sanchez", listOf("Gruber", "Piselli"),89.3),
244-
)
245-
collection.insertMany(students)
246-
247-
// :snippet-start: aggregates-data-class
248-
val pipeline = listOf(
249-
count(Student::name)
250-
)
251-
252-
val result = collection.aggregate(pipeline)
253-
result.collect { println(it) }
254-
// :snippet-end:
255-
}
256235
}

0 commit comments

Comments
 (0)