[JAVA-5177] Documentation error in Scala Driver examples Created: 20/Sep/23 Updated: 29/Sep/23 Resolved: 29/Sep/23 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Documentation |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Josh Smith | Assignee: | Rachelle Palmer |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
||||||||
| Description |
|
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.
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
This creates confusion for our customers that are trying to use the documentation to get things up and working. |
| Comments |
| Comment by Ross Lawley [ 29/Sep/23 ] |
|
Filed for fixing with the docs team. |