Skip to content

Commit 4be00d1

Browse files
(DOCSP-38243): Add meta descriptions (#7326) (#7331)
* (DOCSP-38243): Add meta descriptions * undo dot-dollar changes * adjust distinct
1 parent d48bd09 commit 4be00d1

10 files changed

+33
-4
lines changed

source/reference/method/Date.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Date() and Datetime
44

55
.. default-domain:: mongodb
66

7+
.. meta::
8+
:description: Use the date method to return a new date. You can specify a date to return or return the current date.
9+
710
.. facet::
811
:name: programming_language
912
:values: shell

source/reference/method/db.collection.aggregate.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ db.collection.aggregate()
44

55
.. default-domain:: mongodb
66

7+
.. meta::
8+
:description: Run an aggregation pipeline on a collection or view.
9+
710
.. facet::
811
:name: programming_language
912
:values: shell
@@ -587,4 +590,4 @@ Use Variables in ``let``
587590
} }
588591
],
589592
{ let: { targetTotal: 3000 } }
590-
)
593+
)

source/reference/method/db.collection.bulkWrite.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ db.collection.bulkWrite()
44

55
.. default-domain:: mongodb
66

7+
.. meta::
8+
:description: Perform a series of ordered or unordered write operations.
9+
710
.. facet::
811
:name: programming_language
912
:values: shell

source/reference/method/db.collection.count.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ db.collection.count()
44

55
.. default-domain:: mongodb
66

7+
.. meta::
8+
:keywords: deprecated
9+
:description: The count method is deprecated and should be replaced by the countDocuments or estimatedDocumentCount method
10+
711
.. facet::
812
:name: programming_language
913
:values: shell

source/reference/method/db.collection.countDocuments.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ db.collection.countDocuments()
44

55
.. default-domain:: mongodb
66

7+
.. meta::
8+
:description: Return the number of documents in a collection or view.
9+
710
.. facet::
811
:name: programming_language
912
:values: shell
@@ -210,4 +213,3 @@ Date('01/01/2012')``:
210213
- :dbcommand:`count`
211214
- :ref:`collStats pipeline stage with the count <collstat-count>`
212215
option
213-

source/reference/method/db.collection.createIndex.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ db.collection.createIndex()
66

77
.. default-domain:: mongodb
88

9+
.. meta::
10+
:description: Create an index on a collection to improve performance for queries.
11+
912
.. facet::
1013
:name: programming_language
1114
:values: shell

source/reference/method/db.collection.deleteMany.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ db.collection.deleteMany()
44

55
.. default-domain:: mongodb
66

7+
.. meta::
8+
:description: Delete all documents that match a specified filter from a collection.
9+
710
.. facet::
811
:name: programming_language
912
:values: shell

source/reference/method/db.collection.deleteOne.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ db.collection.deleteOne()
44

55
.. default-domain:: mongodb
66

7+
.. meta::
8+
:description: Delete a single document from a collection.
9+
710
.. facet::
811
:name: programming_language
912
:values: shell
@@ -333,4 +336,4 @@ indicates the number of operations that used the index.
333336
.. seealso::
334337

335338
To delete multiple documents, see
336-
:method:`db.collection.deleteMany()`
339+
:method:`db.collection.deleteMany()`

source/reference/method/db.collection.distinct.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ db.collection.distinct()
44

55
.. default-domain:: mongodb
66

7+
.. meta::
8+
:description: Find distinct values that occur in a field within a collection.
9+
710
.. facet::
811
:name: programming_language
912
:values: shell
@@ -265,4 +268,3 @@ option:
265268

266269
For descriptions on the collation fields, see
267270
:ref:`collation-document-fields`.
268-

source/reference/method/db.collection.drop.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ db.collection.drop()
66

77
.. default-domain:: mongodb
88

9+
.. meta::
10+
:description: Delete a collection or view from a database.
11+
912
.. facet::
1013
:name: programming_language
1114
:values: shell

0 commit comments

Comments
 (0)