We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ce6b08 commit 197e237Copy full SHA for 197e237
source/includes/read/retrieve.kt
@@ -27,7 +27,7 @@ fun main() {
27
// end-find
28
29
// start-find-one
30
- val results = collection.find(eq(Restaurant::cuisine.name, "Spanish")).firstOrNull()
+ val results = collection.find(eq(Restaurant::cuisine.name, "Spanish")).first()
31
// end-find-one
32
33
// start-find-iterate
@@ -38,7 +38,7 @@ fun main() {
38
// end-find-iterate
39
40
// start-find-one-print
41
- val results = collection.find(eq(Restaurant::cuisine.name, "Spanish"))
42
println(results)
43
// end-find-one-print
44
0 commit comments