You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by xificurC <gi...@git.apache.org> on 2018/10/10 08:15:24 UTC

[GitHub] camel pull request #2560: mongodb3 - adds example of iterating over a DBCurs...

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 <xi...@...>
Date:   2018-10-10T08:08:07Z

    mongodb3 - adds example of iterating over a DBCursor

----


---

[GitHub] camel pull request #2560: mongodb3 - adds example of iterating over a DBCurs...

Posted by oscerd <gi...@git.apache.org>.
Github user oscerd closed the pull request at:

    https://github.com/apache/camel/pull/2560


---