@@ -166,7 +166,7 @@ documents and does not query the database:
166166 band.members.any?
167167
168168Note that simply calling ``any?`` would *not* load the association
169- (since ``any?`` only retrtieves the _id field of the first matching document).
169+ (since ``any?`` only retrieves the _id field of the first matching document).
170170
171171``exists?``
172172~~~~~~~~~~~
@@ -180,7 +180,7 @@ any *persisted* documents in the association. Unlike the ``any?`` method:
180180- ``exists?`` does not allow filtering in the application like ``any?`` does,
181181 and does not take any arguments.
182182
183- The following examle illustrates the difference between ``exists?`` and
183+ The following example illustrates the difference between ``exists?`` and
184184``any?``:
185185
186186.. code-block:: ruby
@@ -919,7 +919,7 @@ is defined:
919919- ``:foreign_key`` is the field on the local model which stores the
920920 ``:primary_key`` values.
921921- ``:inverse_primary_key`` is the field on the local model that the remote
922- model uses to look up the local model docuemnts .
922+ model uses to look up the local model documents .
923923- ``:inverse_foreign_key`` is the field on the remote model storing the
924924 values in ``:inverse_primary_key``.
925925
@@ -1531,7 +1531,7 @@ are supported:
15311531- `$project <https://docs.mongodb.com/manual/reference/operator/aggregation/project/>`_
15321532- `$unwind <https://docs.mongodb.com/manual/reference/operator/aggregation/unwind/>`_
15331533
1534- To construct a pipeline, call the corresponding aggregation pipeine methods
1534+ To construct a pipeline, call the corresponding aggregation pipeline methods
15351535on a ``Criteria`` instance. Aggregation pipeline operations are added to the
15361536``pipeline`` attribute of the ``Criteria`` instance. To execute the pipeline,
15371537pass the ``pipeline`` attribute value to ``Collection#aggragegate`` method.
@@ -1592,7 +1592,7 @@ Alternatively, standard MongoDB aggregation pipeline syntax may be used:
15921592
15931593.. code-block:: ruby
15941594
1595- criteria = Tour.all.group(_id: 'states', states: {'$addtoSet ' => '$states'})
1595+ criteria = Tour.all.group(_id: 'states', states: {'$addToSet ' => '$states'})
15961596
15971597project
15981598```````
@@ -1616,7 +1616,7 @@ unwind
16161616The ``unwind`` method adds an `$unwind aggregation pipeline stage
16171617<https://docs.mongodb.com/manual/reference/operator/aggregation/unwind/>`_.
16181618
1619- The argument can be a field name, specifyable as a symbol or a string, or
1619+ The argument can be a field name, specifiable as a symbol or a string, or
16201620a Hash or a ``BSON::Document`` instance:
16211621
16221622.. code-block:: ruby
0 commit comments