Skip to content

Commit d2cc65e

Browse files
committed
Merge remote-tracking branch 'upstream/v2.21' into v2.21
2 parents b41dad7 + a56edc1 commit d2cc65e

12 files changed

+80
-440
lines changed

snooty.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ name = "ruby-driver"
22
title = "Ruby MongoDB Driver"
33

44
intersphinx = ["https://www.mongodb.com/docs/manual/objects.inv"]
5+
6+
sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
7+
8+
[constants]
9+
driver-short = "Ruby driver"

source/getting-started.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ Getting Started
66

77
.. default-domain:: mongodb
88

9-
This section describes how to install the driver, installation prerequisites
10-
and compatibility considerations.
11-
129
.. toctree::
1310
:titlesonly:
1411

15-
installation
16-
reference/driver-compatibility
17-
support
12+
Installation <installation>
13+
Driver Compatibility <reference/driver-compatibility>
14+
Support <support>
15+
16+
This section describes how to install the driver, installation prerequisites,
17+
and compatibility considerations.

source/index.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@ Ruby MongoDB Driver
88

99
.. default-domain:: mongodb
1010

11+
.. class:: hidden
12+
13+
.. toctree::
14+
:titlesonly:
15+
16+
Get Started <getting-started>
17+
Tutorials <tutorials>
18+
Connection & Configuration <reference/connection-and-configuration>
19+
Working with Data <reference/working-with-data>
20+
Schema Operations <reference/schema-operations>
21+
API <https://mongodb.com/docs/ruby-driver/current/api/>
22+
Release Notes <release-notes>
23+
Additional Resources <reference/additional-resources>
24+
Contribute <contribute>
25+
1126
Welcome to the documentation site for the official MongoDB Ruby driver.
1227
You can add the driver to your application to work with MongoDB in
1328
Ruby.
@@ -49,19 +64,4 @@ For tutorials on Mongoid, see the `Mongoid Manual <https://mongodb.com/docs/mong
4964
.. COMMENT For the actual build, see mongodb/docs-ruby repo which pulls the documentation source from:
5065
.. mongo-ruby-driver,
5166
.. bson-ruby, and
52-
.. mongoid repos.
53-
54-
.. class:: hidden
55-
56-
.. toctree::
57-
:titlesonly:
58-
59-
getting-started
60-
tutorials
61-
reference/connection-and-configuration
62-
reference/working-with-data
63-
reference/schema-operations
64-
API <https://mongodb.com/docs/ruby-driver/current/api/>
65-
release-notes
66-
reference/additional-resources
67-
contribute
67+
.. mongoid repos.

source/reference/aggregation.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ find the total number of documents which have the exact array
9898

9999
count = coll.count({ 'categories' => [ 'Chinese', 'Seafood' ] })
100100

101+
.. note::
102+
103+
The ``count`` method is not the same as the ``countDocuments``
104+
method and may not support the same filters. ``countDocuments`` uses the
105+
``$match`` stage of the aggregation pipeline to filter documents. To learn more
106+
about limitations of the ``$match`` stage, see :manual:`$match Restrictions </reference/operator/aggregation/match/#restrictions>`
107+
in the MongoDB Server manual.
108+
101109
Distinct
102110
~~~~~~~~
103111

source/reference/connection-and-configuration.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Connection & Configuration
66

77
.. default-domain:: mongodb
88

9-
This section describes how to create the client objects and what configuration
10-
options the driver provides, including authentication.
11-
129
.. toctree::
1310
:titlesonly:
1411

15-
/reference/create-client
16-
/reference/authentication
17-
/reference/monitoring
18-
/reference/user-management
12+
Create a Client </reference/create-client>
13+
Authentication </reference/authentication>
14+
Monitoring </reference/monitoring>
15+
User Management </reference/user-management>
16+
17+
This section describes how to create the client objects and what configuration
18+
options the driver provides, including authentication.

source/reference/crud-operations.txt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,13 @@ when querying and their corresponding methods as examples.
285285
If the read concern is specifed on the client or collection level, or
286286
if the read concern is specified as a find option, it will NOT be passed
287287
by the driver to the explain command.
288-
289-
.. note::
290-
291-
The information returned by the server for the ``explain`` command
292-
varies with server version and deployment topology. The driver's
293-
``explain`` method returns whatever the server provided.
294-
295-
**The return value of ``explain`` method is not part of the driver's
296-
public API and depends on the server version and deployment topology.**
288+
289+
The information returned by the server for the ``explain`` command
290+
varies with server version and deployment topology. The driver's
291+
``explain`` method returns whatever the server provided.
292+
293+
**The return value of the ``explain`` method is not part of the driver's
294+
public API and depends on the server version and deployment topology.**
297295

298296
* - ``hint(Hash)``
299297
- Provides the query with an

source/reference/in-use-encryption.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ In-Use Encryption
66

77
.. default-domain:: mongodb
88

9-
This section describes the different encryption methods in use by the Ruby
10-
driver for MongoDB.
11-
129
.. toctree::
1310
:titlesonly:
1411

15-
/reference/in-use-encryption/queryable-encryption
16-
/reference/in-use-encryption/client-side-encryption
12+
Queryable Encryption </reference/in-use-encryption/queryable-encryption>
13+
Client-Side Encryption </reference/in-use-encryption/client-side-encryption>
14+
15+
This section describes the different encryption methods in use by the Ruby
16+
driver for MongoDB.
1717

source/reference/schema-operations.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ including managing databases, collections, indexes and users.
1212
.. toctree::
1313
:titlesonly:
1414

15-
/reference/database-tasks
16-
/reference/collection-tasks
17-
/reference/indexing
18-
/reference/search-indexes
19-
/reference/collations
15+
Databases </reference/database-tasks>
16+
Collections </reference/collection-tasks>
17+
Indexes </reference/indexing>
18+
Atlas Search Indexes </reference/search-indexes>
19+
Collations </reference/collations>

source/reference/transactions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
Transactions
33
************
44

5-
.. default-domain:: mongodb
6-
75
.. contents:: On this page
86
:local:
97
:backlinks: none
@@ -16,6 +14,8 @@ Version 4.0 of the MongoDB server introduces
1614
(Updates to multiple fields within a single document are atomic in all
1715
versions of MongoDB.) Ruby driver version 2.6.0 adds support for transactions.
1816

17+
.. sharedinclude:: dbx/transactions-parallelism.rst
18+
1919
.. _using-transactions:
2020

2121
Using Transactions

source/reference/working-with-data.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ implements for inserting, updating and retrieving data from MongoDB.
1212
.. toctree::
1313
:titlesonly:
1414

15-
/reference/crud-operations
16-
/reference/bulk-operations
17-
/reference/projection
18-
/reference/aggregation
19-
/reference/map-reduce
20-
/reference/text-search
21-
/reference/geospatial-search
22-
/reference/query-cache
23-
/reference/gridfs
24-
/reference/change-streams
25-
/reference/sessions
26-
/reference/transactions
27-
/reference/in-use-encryption
15+
CRUD </reference/crud-operations>
16+
Bulk Writes </reference/bulk-operations>
17+
Projection </reference/projection>
18+
Aggregation </reference/aggregation>
19+
MapReduce </reference/map-reduce>
20+
Text Search </reference/text-search>
21+
Geospatial Search </reference/geospatial-search>
22+
Query Cache </reference/query-cache>
23+
GridFS </reference/gridfs>
24+
Change Streams </reference/change-streams>
25+
Sessions </reference/sessions>
26+
Transactions </reference/transactions>
27+
In-Use Encryption </reference/in-use-encryption>

0 commit comments

Comments
 (0)