Skip to content

Commit 4cb32bc

Browse files
committed
RR feedback
1 parent 1266781 commit 4cb32bc

File tree

5 files changed

+29
-17
lines changed

5 files changed

+29
-17
lines changed

source/command.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Run a Command
1616
:depth: 2
1717
:class: singlecol
1818

19+
Overview
20+
--------
21+
1922
In this guide, you can learn how to run raw database operations using the
2023
``MongoDatabase.runCommand()`` method. A raw database operation is a
2124
command you can execute directly on the {+mdb-server+} CLI. These
@@ -50,8 +53,8 @@ statistics from a specific MongoDB database.
5053

5154
.. include:: /includes/connect-guide-note.rst
5255

53-
.. literalinclude:: /includes/Command.java
54-
:language: java
56+
.. literalinclude:: /includes/RunCommand.java
57+
:language: java
5558

5659
When you run the preceding command, you should see output similar to the
5760
following:

source/crud/read-operations.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Read Operations
1111
:caption: Read Operations
1212

1313
Retrieve Data </crud/read-operations/retrieve>
14-
Data from a Cursor </crud/read-operations/cursor>
14+
Access Data from a Cursor </crud/read-operations/cursor>
1515
Sort Results </crud/read-operations/sort>
1616
Skip Returned Results </crud/read-operations/skip>
1717
Limit Returned Results </crud/read-operations/limit>
@@ -21,13 +21,13 @@ Read Operations
2121
Geospatial Data </crud/read-operations/geo>
2222
Search Text </crud/read-operations/text>
2323

24-
- :doc:`/crud/read-operations/retrieve`
25-
- :doc:`/crud/read-operations/cursor`
26-
- :doc:`/crud/read-operations/sort`
27-
- :doc:`/crud/read-operations/skip`
28-
- :doc:`/crud/read-operations/limit`
29-
- :doc:`/crud/read-operations/project`
30-
- :doc:`/crud/read-operations/count`
31-
- :doc:`/crud/read-operations/distinct`
32-
- :doc:`/crud/read-operations/geo`
33-
- :doc:`/crud/read-operations/text`
24+
- :ref:`Retrieve <java-fundamentals-retrieve-data>`
25+
- :ref:`Access Data From a Cursor <java-fundamentals-cursor>`
26+
- :ref:`Sort Results <java-fundamentals-sort>`
27+
- :ref:`Skip Returned Results <java-fundamentals-skip>`
28+
- :ref:`Limit the Number of Returned Results <java-fundamentals-limit>`
29+
- :ref:`Specify Which Fields to Return <java-fundamentals-project>`
30+
- :ref:`Count Documents <java-count>`
31+
- :ref:`Retrieve Distinct Values of a Field <java-usage-distinct>`
32+
- :ref:`Search Geospatially <java-geo-search>`
33+
- :ref:`Search Text <java-fundamentals-search-text>`

source/crud/read-operations/count.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Count Documents
1818
:depth: 2
1919
:class: singlecol
2020

21+
Overview
22+
--------
23+
2124
In this guide, you can learn how to count the number of documents in your
2225
MongoDB database collections. There are two instance methods in the
2326
``MongoCollection`` class that you can call to count the number of documents in

source/crud/read-operations/distinct.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ Retrieve Distinct Values of a Field
1818
:depth: 2
1919
:class: singlecol
2020

21-
You can retrieve a list of distinct values for a field across a
22-
collection by calling the ``distinct()`` method on a ``MongoCollection``
23-
object. Pass the document field name as the first parameter and the class
24-
you want to cast the results to as the second parameter as shown below:
21+
Overview
22+
--------
23+
24+
In this guide, you can learn how to retrieve a list of distinct values for a
25+
field across a collection by calling the ``distinct()`` method on a
26+
``MongoCollection`` object. Pass the document field name as the first parameter
27+
and the class you want to cast the results to as the second parameter as shown
28+
below:
2529

2630
.. code-block:: java
2731

source/crud/read-operations/geo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _java-geo-search:
2+
13
===================
24
Search Geospatially
35
===================

0 commit comments

Comments
 (0)