Skip to content

Commit beb5ecb

Browse files
author
Emily Giurleo
committed
RUBY-2274: fix CRUD headers (#2031)
1 parent 20a56ce commit beb5ecb

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/tutorials/ruby-driver-crud-operations.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ On MongoDB 2.4, an exception is only raised if the insert fails and the
8888
.. _specify-decimal128:
8989

9090
Specify a ``Decimal128`` number
91-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91+
-------------------------------
9292

9393
.. versionadded:: 3.4
9494

@@ -166,7 +166,7 @@ notation.
166166
.. _ruby-driver-query-options:
167167

168168
Query Options
169-
~~~~~~~~~~~~~
169+
-------------
170170

171171
To add options to a query, chain the appropriate methods after the
172172
``find`` method. Note that the underlying object, the ``Mongo::Collection::View``,
@@ -238,7 +238,7 @@ when querying and their corresponding methods as examples.
238238
client[:artists].find.sort(:name => -1)
239239

240240
Additional Query Operations
241-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
241+
---------------------------
242242

243243
``count``
244244
Get the total number of documents an operation returns.
@@ -260,7 +260,7 @@ Additional Query Operations
260260
client[:artists].find.distinct(:name )
261261

262262
Tailable Cursors
263-
~~~~~~~~~~~~~~~~
263+
----------------
264264

265265
For capped collections you may use a :manual:`tailable cursor
266266
</core/tailable-cursors/>` that remains open
@@ -289,11 +289,11 @@ following code example shows how a tailable cursor might be used:
289289
.. _ruby-driver-read-preference:
290290

291291
Read Preference
292-
~~~~~~~~~~~~~~~
292+
---------------
293293

294294
Read preference determines the candidate :manual:`replica set</replication/>`
295295
members to which a query or command can be sent. They consist of a **mode**
296-
specified as a symbol, an array of hashes known as **tag_sets**,
296+
specified as a symbol, an array of hashes known as **tag_sets**,
297297
the ``hedge`` option, which is a Hash specifying hedged read behavior, and two
298298
timing options: **local_threshold** and **server_selection_timeout**.
299299

@@ -342,7 +342,7 @@ using the ``with`` method:
342342
artists.with(:read => { :mode => :primary_preferred }).find.to_a
343343

344344
Mode
345-
~~~~
345+
----
346346

347347
There are five possible read preference modes: ``:primary``, ``:secondary``,
348348
``:primary_preferred``, ``:secondary_preferred`` and``:nearest``.
@@ -360,7 +360,7 @@ Please see the :manual:`read preference documentation in the MongoDB Manual
360360
unchanged.
361361

362362
Tag sets
363-
~~~~~~~~
363+
--------
364364

365365
The ``tag_sets`` parameter is an ordered list of tag sets used to
366366
restrict the eligibility of servers for selection, such as for data
@@ -380,7 +380,7 @@ the empty tag set is a subset of any tag set. This means the default
380380
``tag_sets`` parameter ``[{}]`` matches all servers.
381381

382382
Hedge
383-
~~~~~
383+
-----
384384

385385
The ``hedge`` parameter is a Hash that specifies whether the server should use
386386
hedged reads. With hedged reads, sharded clusters can route read operations to
@@ -485,7 +485,7 @@ the modification occurs.
485485
doc # Return the document before the update.
486486

487487
Update Options
488-
~~~~~~~~~~~~~~
488+
--------------
489489

490490
To add options to an update command, specify them as key-value pairs in the options
491491
Hash argument.
@@ -583,7 +583,7 @@ Deleting
583583
result.deleted_count # Returns the number deleted.
584584

585585
Delete Options
586-
~~~~~~~~~~~~~~
586+
--------------
587587

588588
To add options to a delete command, specify them as key-value pairs in the
589589
options Hash argument.

0 commit comments

Comments
 (0)