-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Documentation
-
None
The document for how to print out the results of a collection when doing a read found here
https://mongodb.github.io/mongo-java-driver/4.10/driver-scala/tutorials/perform-read-operations/
are in accurate. Trying to execute that code as defines produces this error.
value printReesults is not a member of org.mongodb.scala.FindObservable[org.mongodb.scala.bson.Document] collection.find().printResults()
The top of the documentation even mentions that it uses the Observable pattern, but then the examples don't use it. The accurate code seems to be something closer to
collection.find().subscribe( (document: Document) => println(document.toJson()))
This creates confusion for our customers that are trying to use the documentation to get things up and working.