Skip to content

Commit

Permalink
output
Browse files Browse the repository at this point in the history
  • Loading branch information
norareidy committed Jun 24, 2024
1 parent bb27807 commit 83af384
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions source/read/retrieve.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,19 @@ matching document from the retrieved results.
The following example uses the ``find_one()`` method to find the first document in which
the ``name`` field has the value ``"LinkedIn"``:

.. literalinclude:: /includes/read/retrieve.cpp
:language: cpp
:dedent:
:start-after: start-find-one
:end-before: end-find-one
.. io-code-block::

.. input:: /includes/read/retrieve.cpp
:start-after: start-find-one
:end-before: end-find-one
:language: cpp
:dedent:

.. output::

{ "_id" : { "$oid" : "52cdef7c4bab8bd675297e0c" }, "name" : "LinkedIn", "permalink" : "linkedin",
"crunchbase_url" : "http://www.crunchbase.com/company/linkedin", "homepage_url" : "http://linkedin.com",
...

.. tip:: Sort Order

Expand Down

0 comments on commit 83af384

Please sign in to comment.