GitHub user xificurC opened a pull request:
https://github.com/apache/camel/pull/2560
mongodb3 - adds example of iterating over a DBCursor
The documentation says one can return a `DBCursor` but doesn't show an
example how to iterate over it in order to work with the actual data. I found
this way of doing it based on [this
gist](https://gist.github.com/padewitte/1e159475b0ae7a9b6b8e) and thought
future readers might appreciate the concrete example.
If the correct way to iterate is different I'll gladly update the PR or
close this one if a different PR solves my case.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/xificurC/camel master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/2560.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2560
----
commit bd65ca86a392fce4a5289a846d6a6dc71307b60f
Author: xificurC <xificurc@...>
Date: 2018-10-10T08:08:07Z
mongodb3 - adds example of iterating over a DBCursor
----
---