diff --git a/source/compatibility.txt b/source/compatibility.txt index 8db5224e..3333cc07 100644 --- a/source/compatibility.txt +++ b/source/compatibility.txt @@ -4,6 +4,9 @@ Compatibility ============= +.. meta:: + :description: Check the recommended MongoDB Go Driver versions for compatibility with different MongoDB server versions. + .. contents:: On this page :local: :backlinks: none diff --git a/source/connection-troubleshooting.txt b/source/connection-troubleshooting.txt index b57a040b..a9be4458 100644 --- a/source/connection-troubleshooting.txt +++ b/source/connection-troubleshooting.txt @@ -10,6 +10,7 @@ Connection Troubleshooting .. meta:: :keywords: code example, disconnected, deployment + :description: Troubleshoot connection issues with the MongoDB Go Driver by verifying connection strings, authentication mechanisms, and firewall settings. .. contents:: On this page :local: diff --git a/source/faq.txt b/source/faq.txt index 53635b18..c38a73e8 100644 --- a/source/faq.txt +++ b/source/faq.txt @@ -10,6 +10,7 @@ FAQ .. meta:: :keywords: code example, connection error, question, help + :description: Find answers to common questions about the MongoDB Go Driver, including connection pooling, error handling, and BSON to JSON conversion. .. contents:: On this page :local: diff --git a/source/fundamentals.txt b/source/fundamentals.txt index c395aa5a..98e30700 100644 --- a/source/fundamentals.txt +++ b/source/fundamentals.txt @@ -2,6 +2,9 @@ Fundamentals ============ +.. meta:: + :description: Explore tasks like connecting to MongoDB, performing transactions, and working with BSON using the MongoDB Go Driver. + .. toctree:: :titlesonly: :maxdepth: 1 diff --git a/source/fundamentals/aggregation.txt b/source/fundamentals/aggregation.txt index 79255109..fccb3357 100644 --- a/source/fundamentals/aggregation.txt +++ b/source/fundamentals/aggregation.txt @@ -4,6 +4,9 @@ Aggregation =========== +.. meta:: + :description: Explore how to use aggregation operations in the MongoDB Go Driver, including examples of grouping, sorting, and filtering data in collections. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/auth.txt b/source/fundamentals/auth.txt index cbe84f8d..eda165ad 100644 --- a/source/fundamentals/auth.txt +++ b/source/fundamentals/auth.txt @@ -4,6 +4,9 @@ Authentication Mechanisms ========================= +.. meta:: + :description: Learn how to use various authentication mechanisms with the MongoDB Go Driver, including SCRAM, MONGODB-AWS, and X.509. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/bson.txt b/source/fundamentals/bson.txt index c003b632..2cadcb55 100644 --- a/source/fundamentals/bson.txt +++ b/source/fundamentals/bson.txt @@ -16,6 +16,7 @@ Work with BSON .. meta:: :keywords: code examples, serialization + :description: Learn how the MongoDB Go Driver handles BSON data conversion, including marshalling and unmarshalling, and how to use struct tags and BSON options. Overview -------- diff --git a/source/fundamentals/collations.txt b/source/fundamentals/collations.txt index 27ac42e9..1a2380b1 100644 --- a/source/fundamentals/collations.txt +++ b/source/fundamentals/collations.txt @@ -4,6 +4,9 @@ Collations ========== +.. meta:: + :description: Learn how to use collations in MongoDB to order query results by string values according to specific language and locale conventions. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/connections.txt b/source/fundamentals/connections.txt index 7dce48a8..7bb9145e 100644 --- a/source/fundamentals/connections.txt +++ b/source/fundamentals/connections.txt @@ -4,6 +4,9 @@ Connections =========== +.. meta:: + :description: Explore how to configure connections to a MongoDB deployment using the MongoDB Go Driver, including options for TLS and network compression. + .. toctree:: Connection Guide diff --git a/source/fundamentals/connections/network-compression.txt b/source/fundamentals/connections/network-compression.txt index 6ce2c47d..ae9285ae 100644 --- a/source/fundamentals/connections/network-compression.txt +++ b/source/fundamentals/connections/network-compression.txt @@ -4,6 +4,9 @@ Network Compression =================== +.. meta:: + :description: Learn how to enable network compression in the MongoDB Go Driver for MongoDB using Snappy, Zlib, or Zstandard algorithms to reduce data transfer. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/connections/tls.txt b/source/fundamentals/connections/tls.txt index d8b3b9bd..96ca46ca 100644 --- a/source/fundamentals/connections/tls.txt +++ b/source/fundamentals/connections/tls.txt @@ -10,6 +10,7 @@ Enable and Configure TLS .. meta:: :keywords: code example, security, connection options + :description: Learn how to secure your MongoDB connection using TLS by enabling TLS options and configuring certificates in your Go application. .. contents:: On this page :local: diff --git a/source/fundamentals/context.txt b/source/fundamentals/context.txt index 310c4cab..b2487b0d 100644 --- a/source/fundamentals/context.txt +++ b/source/fundamentals/context.txt @@ -10,6 +10,7 @@ Context .. meta:: :keywords: code example, unblock + :description: Learn how to use the context package in Go to manage timeouts and cancellations for blocking method calls in the MongoDB Go driver. .. contents:: On this page :local: diff --git a/source/fundamentals/crud.txt b/source/fundamentals/crud.txt index a2d4642d..3fcff3c9 100644 --- a/source/fundamentals/crud.txt +++ b/source/fundamentals/crud.txt @@ -4,6 +4,9 @@ CRUD Operations =============== +.. meta:: + :description: Explore how to perform CRUD operations using the MongoDB Go Driver, including creating, reading, updating, and deleting documents. + .. toctree:: :caption: CRUD Operations diff --git a/source/fundamentals/crud/compound-operations.txt b/source/fundamentals/crud/compound-operations.txt index 26e5712c..e2a95cb8 100644 --- a/source/fundamentals/crud/compound-operations.txt +++ b/source/fundamentals/crud/compound-operations.txt @@ -4,6 +4,9 @@ Compound Operations =================== +.. meta:: + :description: Learn how to perform compound operations in MongoDB using Go, combining read and write actions into a single atomic operation to prevent data alteration. + .. default-domain:: mongodb .. contents:: On this page diff --git a/source/fundamentals/crud/read-operations/changestream.txt b/source/fundamentals/crud/read-operations/changestream.txt index d104a959..13c8d553 100644 --- a/source/fundamentals/crud/read-operations/changestream.txt +++ b/source/fundamentals/crud/read-operations/changestream.txt @@ -11,6 +11,7 @@ Monitor Data Changes .. meta:: :keywords: code example, delta + :description: Learn how to monitor document changes in MongoDB using change streams, including opening streams and modifying output with pipelines and options. .. contents:: On this page :local: diff --git a/source/fundamentals/crud/read-operations/count.txt b/source/fundamentals/crud/read-operations/count.txt index 7f43e7c1..6c1ce856 100644 --- a/source/fundamentals/crud/read-operations/count.txt +++ b/source/fundamentals/crud/read-operations/count.txt @@ -4,6 +4,9 @@ Count Documents =============== +.. meta:: + :description: Learn to count documents in a MongoDB collection using Go, including accurate, estimated, and aggregation-based methods. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/crud/read-operations/cursor.txt b/source/fundamentals/crud/read-operations/cursor.txt index 70eff598..9bedf310 100644 --- a/source/fundamentals/crud/read-operations/cursor.txt +++ b/source/fundamentals/crud/read-operations/cursor.txt @@ -10,6 +10,7 @@ Access Data From a Cursor .. meta:: :keywords: code example, read operation, see results, iterate + :description: Learn to access data using a cursor in Go, including retrieving documents individually or in batches, and closing the cursor to free resources. .. contents:: On this page :local: diff --git a/source/fundamentals/crud/read-operations/distinct.txt b/source/fundamentals/crud/read-operations/distinct.txt index d0124762..36d599e9 100644 --- a/source/fundamentals/crud/read-operations/distinct.txt +++ b/source/fundamentals/crud/read-operations/distinct.txt @@ -10,6 +10,7 @@ Retrieve Distinct Values .. meta:: :keywords: read operation, code example + :description: Learn how to retrieve distinct values for a specified field in a collection using the Distinct() method in Go. .. contents:: On this page :local: diff --git a/source/fundamentals/crud/read-operations/limit.txt b/source/fundamentals/crud/read-operations/limit.txt index be0b683d..226c97fd 100644 --- a/source/fundamentals/crud/read-operations/limit.txt +++ b/source/fundamentals/crud/read-operations/limit.txt @@ -10,6 +10,7 @@ Limit the Number of Returned Results .. meta:: :keywords: read operation, code example, pipeline, customize output + :description: Learn how to limit the number of documents returned in read operations using the MongoDB Go Driver, including examples with sorting and aggregation. .. contents:: On this page :local: diff --git a/source/fundamentals/crud/read-operations/project.txt b/source/fundamentals/crud/read-operations/project.txt index 2ba832c9..f5740538 100644 --- a/source/fundamentals/crud/read-operations/project.txt +++ b/source/fundamentals/crud/read-operations/project.txt @@ -10,6 +10,7 @@ Specify Which Fields to Return .. meta:: :keywords: read, code example, pipeline stage, customize output + :description: Learn how to specify which fields to return in MongoDB documents using projections in Go, including examples for including or excluding fields. .. contents:: On this page :local: diff --git a/source/fundamentals/crud/read-operations/query-document.txt b/source/fundamentals/crud/read-operations/query-document.txt index 255cbc7e..18c3bac0 100644 --- a/source/fundamentals/crud/read-operations/query-document.txt +++ b/source/fundamentals/crud/read-operations/query-document.txt @@ -4,6 +4,9 @@ Specify a Query =============== +.. meta:: + :description: Learn how to specify queries in Go to match subsets of documents using filters, operators, and various criteria. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/crud/read-operations/retrieve.txt b/source/fundamentals/crud/read-operations/retrieve.txt index ded9cbdc..48fc0d30 100644 --- a/source/fundamentals/crud/read-operations/retrieve.txt +++ b/source/fundamentals/crud/read-operations/retrieve.txt @@ -4,6 +4,9 @@ Retrieve Data ============== +.. meta:: + :description: Learn how to retrieve data by using MongoDB Go Driver read operations, including find and aggregation methods. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/crud/read-operations/skip.txt b/source/fundamentals/crud/read-operations/skip.txt index 9fc6ac34..9458460f 100644 --- a/source/fundamentals/crud/read-operations/skip.txt +++ b/source/fundamentals/crud/read-operations/skip.txt @@ -4,6 +4,9 @@ Skip Returned Results ===================== +.. meta:: + :description: Learn how to skip a specified number of results in MongoDB read operations using the setSkip() method or the $skip stage in aggregation pipelines. + .. default-domain:: mongodb .. contents:: On this page diff --git a/source/fundamentals/crud/read-operations/sort.txt b/source/fundamentals/crud/read-operations/sort.txt index 7f2b7a8e..a3fba2c5 100644 --- a/source/fundamentals/crud/read-operations/sort.txt +++ b/source/fundamentals/crud/read-operations/sort.txt @@ -4,6 +4,9 @@ Sort Results ============ +.. meta:: + :description: Learn how to sort query results, handle ties, and apply sorting in aggregation pipelines with the MongoDB Go Driver. + .. default-domain:: mongodb .. contents:: On this page diff --git a/source/fundamentals/crud/read-operations/text.txt b/source/fundamentals/crud/read-operations/text.txt index 46f71126..38505737 100644 --- a/source/fundamentals/crud/read-operations/text.txt +++ b/source/fundamentals/crud/read-operations/text.txt @@ -4,6 +4,9 @@ Search Text =========== +.. meta:: + :description: Learn how to perform text searches with the MongoDB Go Driver, including creating text indexes and sorting results by relevance. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/crud/write-operations/bulk.txt b/source/fundamentals/crud/write-operations/bulk.txt index 63756523..9f79301e 100644 --- a/source/fundamentals/crud/write-operations/bulk.txt +++ b/source/fundamentals/crud/write-operations/bulk.txt @@ -4,6 +4,9 @@ Bulk Operations =============== +.. meta:: + :description: Learn to perform bulk write operations with the MongoDB Go Driver, including inserts, updates, replacements, and deletions, using the bulkWrite() method. + .. default-domain:: mongodb .. contents:: On this page diff --git a/source/fundamentals/crud/write-operations/delete.txt b/source/fundamentals/crud/write-operations/delete.txt index 634bb525..2d075d50 100644 --- a/source/fundamentals/crud/write-operations/delete.txt +++ b/source/fundamentals/crud/write-operations/delete.txt @@ -4,6 +4,9 @@ Delete Documents ================ +.. meta:: + :description: Learn how to remove documents from collections with the deleteOne() and deleteMany() methods in the MongoDB Go Driver, with examples and options. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/crud/write-operations/embedded-arrays.txt b/source/fundamentals/crud/write-operations/embedded-arrays.txt index d8b920af..724394fd 100644 --- a/source/fundamentals/crud/write-operations/embedded-arrays.txt +++ b/source/fundamentals/crud/write-operations/embedded-arrays.txt @@ -4,6 +4,9 @@ Update Arrays in a Document =========================== +.. meta:: + :description: Learn how to update array elements in documents using positional operators and the findOneAndUpdate() method in the MongoDB Go Driver. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/crud/write-operations/insert.txt b/source/fundamentals/crud/write-operations/insert.txt index b8e9221e..581d8326 100644 --- a/source/fundamentals/crud/write-operations/insert.txt +++ b/source/fundamentals/crud/write-operations/insert.txt @@ -10,6 +10,7 @@ Insert a Document .. meta:: :keywords: code example, write operation, add data + :description: Learn how to insert documents into a MongoDB collection using the insertOne() and insertMany() methods, with options to modify their behavior. .. contents:: On this page :local: diff --git a/source/fundamentals/crud/write-operations/modify.txt b/source/fundamentals/crud/write-operations/modify.txt index e093e944..6f021206 100644 --- a/source/fundamentals/crud/write-operations/modify.txt +++ b/source/fundamentals/crud/write-operations/modify.txt @@ -10,6 +10,7 @@ Modify Documents .. meta:: :keywords: code example, write operation, change data + :description: Learn how to modify MongoDB documents using update and replace operations, including methods like updateOne(), updateMany(), and replaceOne(). .. contents:: On this page :local: diff --git a/source/fundamentals/crud/write-operations/upsert.txt b/source/fundamentals/crud/write-operations/upsert.txt index 865a2971..f9dc2949 100644 --- a/source/fundamentals/crud/write-operations/upsert.txt +++ b/source/fundamentals/crud/write-operations/upsert.txt @@ -10,6 +10,7 @@ Insert or Update in a Single Operation .. meta:: :keywords: code example, write, add data + :description: Learn how to perform an upsert in MongoDB using Go, which updates existing documents or inserts new ones if no match is found. .. contents:: On this page :local: diff --git a/source/fundamentals/crud/write-read-pref.txt b/source/fundamentals/crud/write-read-pref.txt index 26c171e2..62847b1c 100644 --- a/source/fundamentals/crud/write-read-pref.txt +++ b/source/fundamentals/crud/write-read-pref.txt @@ -10,6 +10,7 @@ Modify Execution of CRUD Operations .. meta:: :keywords: code example, replica set, consistency + :description: Learn how to modify CRUD operations in the MongoDB Go Driver using write concern, read concern, and read preference configurations for replica sets. .. contents:: On this page :local: diff --git a/source/fundamentals/encrypt-fields.txt b/source/fundamentals/encrypt-fields.txt index 4c6b15bb..a6acd45b 100644 --- a/source/fundamentals/encrypt-fields.txt +++ b/source/fundamentals/encrypt-fields.txt @@ -6,5 +6,6 @@ .. meta:: :keywords: privacy, security + :description: Use the MongoDB Go Driver to encrypt document fields with in-use encryption, protecting sensitive data like credit card numbers and health information. .. sharedinclude:: dbx/encrypt-fields.rst \ No newline at end of file diff --git a/source/fundamentals/enterprise-auth.txt b/source/fundamentals/enterprise-auth.txt index 39c8bd3a..1bd2e585 100644 --- a/source/fundamentals/enterprise-auth.txt +++ b/source/fundamentals/enterprise-auth.txt @@ -10,6 +10,7 @@ Enterprise Authentication Mechanisms .. meta:: :keywords: security, code example, credentials + :description: Learn how to authenticate with the MongoDB Go Driver using Enterprise Edition mechanisms like GSSAPI/Kerberos and LDAP, with examples. .. contents:: On this page :local: diff --git a/source/fundamentals/geo.txt b/source/fundamentals/geo.txt index 79fc0260..74450e0c 100644 --- a/source/fundamentals/geo.txt +++ b/source/fundamentals/geo.txt @@ -10,6 +10,7 @@ Work with Geospatial Data .. meta:: :keywords: code example, coordinates, location, geographic + :description: Learn to work with geospatial data in the MongoDB Go Driver using GeoJSON and legacy formats, create geospatial indexes, and perform queries. .. contents:: On this page :local: diff --git a/source/fundamentals/gridfs.txt b/source/fundamentals/gridfs.txt index 53c6efe8..35ad5391 100644 --- a/source/fundamentals/gridfs.txt +++ b/source/fundamentals/gridfs.txt @@ -10,6 +10,7 @@ GridFS .. meta:: :keywords: code example, large files, storage, images + :description: Learn how to store and retrieve large files in the MongoDB Go Driver using GridFS, which splits files into chunks and manages them in a bucket for efficient access. .. contents:: On this page :local: diff --git a/source/fundamentals/indexes.txt b/source/fundamentals/indexes.txt index 4f56f4ee..92768652 100644 --- a/source/fundamentals/indexes.txt +++ b/source/fundamentals/indexes.txt @@ -10,6 +10,7 @@ Indexes .. meta:: :keywords: code example + :description: Learn how to use indexes in the MongoDB Go Driver to improve query performance and support various operations like updates and deletes. .. contents:: On this page :local: diff --git a/source/fundamentals/logging.txt b/source/fundamentals/logging.txt index fde4ef1c..04a80f01 100644 --- a/source/fundamentals/logging.txt +++ b/source/fundamentals/logging.txt @@ -4,6 +4,9 @@ Logging ======= +.. meta:: + :description: Configure logging in your Go application using the MongoDB Go Driver to record events, set severity levels, and integrate custom or third-party loggers. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/monitoring.txt b/source/fundamentals/monitoring.txt index ceb1c1e6..0b47891d 100644 --- a/source/fundamentals/monitoring.txt +++ b/source/fundamentals/monitoring.txt @@ -4,6 +4,9 @@ Monitoring ========== +.. meta:: + :description: Explore monitoring techniques for cluster configuration, command execution, and connection pool changes in Go. + .. toctree:: :caption: Monitoring categories diff --git a/source/fundamentals/monitoring/cluster-monitoring.txt b/source/fundamentals/monitoring/cluster-monitoring.txt index 48335547..8bc1441a 100644 --- a/source/fundamentals/monitoring/cluster-monitoring.txt +++ b/source/fundamentals/monitoring/cluster-monitoring.txt @@ -10,6 +10,7 @@ Cluster Monitoring .. meta:: :keywords: code example, server, topology + :description: Monitor topology events with the MongoDB Go Driver to track cluster changes, assess health, and perform capacity planning by subscribing to SDAM events. .. contents:: On this page :local: diff --git a/source/fundamentals/monitoring/command-monitoring.txt b/source/fundamentals/monitoring/command-monitoring.txt index bdbd1d88..046a3a0a 100644 --- a/source/fundamentals/monitoring/command-monitoring.txt +++ b/source/fundamentals/monitoring/command-monitoring.txt @@ -10,6 +10,7 @@ Command Monitoring .. meta:: :keywords: code example, operation + :description: Learn to monitor MongoDB command events using the Go driver to track query performance and resolve bottlenecks. .. contents:: On this page :local: diff --git a/source/fundamentals/monitoring/connection-monitoring.txt b/source/fundamentals/monitoring/connection-monitoring.txt index 319f737e..f09d9c31 100644 --- a/source/fundamentals/monitoring/connection-monitoring.txt +++ b/source/fundamentals/monitoring/connection-monitoring.txt @@ -10,6 +10,7 @@ Connection Monitoring .. meta:: :keywords: code example, performance, monitor + :description: Monitor the Mongo DB Go Driver's connection pool by subscribing to connection pool events to optimize performance and understand the client lifecycle. .. contents:: On this page :local: diff --git a/source/fundamentals/run-command.txt b/source/fundamentals/run-command.txt index 89f9b055..e1cafd68 100644 --- a/source/fundamentals/run-command.txt +++ b/source/fundamentals/run-command.txt @@ -4,6 +4,9 @@ Run a Command ============= +.. meta:: + :description: Learn how to execute database commands using the MongoDB Go Driver, including methods for running commands and handling responses. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/stable-api.txt b/source/fundamentals/stable-api.txt index 64943fc7..46b853b8 100644 --- a/source/fundamentals/stable-api.txt +++ b/source/fundamentals/stable-api.txt @@ -4,6 +4,9 @@ {+stable-api+} ============== +.. meta:: + :description: Learn how to specify Stable API compatibility in the MongoDB Go Driver to ensure operations align with a defined API version. + .. default-domain:: mongodb .. contents:: On this page diff --git a/source/fundamentals/time-series.txt b/source/fundamentals/time-series.txt index b8503fd3..d0bae4d2 100644 --- a/source/fundamentals/time-series.txt +++ b/source/fundamentals/time-series.txt @@ -4,6 +4,9 @@ Time Series Collections ======================= +.. meta:: + :description: Learn how to create and query time series collections using the MongoDB Go Driver, including setting up time fields and checking collection creation. + .. contents:: On this page :local: :backlinks: none diff --git a/source/fundamentals/transactions.txt b/source/fundamentals/transactions.txt index e7ab7329..1b00bc57 100644 --- a/source/fundamentals/transactions.txt +++ b/source/fundamentals/transactions.txt @@ -10,6 +10,7 @@ Transactions .. meta:: :keywords: code example, rollback, undo operation + :description: Learn to perform transactions using the MongoDB Go Driver, including creating sessions, starting transactions, and committing multi-document operations. .. contents:: On this page :local: diff --git a/source/issues-and-help.txt b/source/issues-and-help.txt index 506808fb..39902616 100644 --- a/source/issues-and-help.txt +++ b/source/issues-and-help.txt @@ -10,6 +10,7 @@ Issues & Help .. meta:: :keywords: suggestion, github + :description: Find support for the MongoDB Go Driver through community forums, report bugs or feature requests via JIRA, and create pull requests to contribute. We are lucky to have a vibrant MongoDB Go community that includes users with varying levels of experience using the Go driver. We find the quickest diff --git a/source/quick-reference.txt b/source/quick-reference.txt index bb313fdf..93a7cc37 100644 --- a/source/quick-reference.txt +++ b/source/quick-reference.txt @@ -4,6 +4,9 @@ Quick Reference =============== +.. meta:: + :description: Explore with the MongoDB Go Driver syntax for various commands, including find, insert, update, delete, and more, with links to API documentation and usage examples. + .. default-domain:: mongodb This page shows the driver syntax for several MongoDB commands and links to diff --git a/source/quick-start.txt b/source/quick-start.txt index c0463e54..c09e609b 100644 --- a/source/quick-start.txt +++ b/source/quick-start.txt @@ -16,6 +16,7 @@ Go Driver Quick Start .. meta:: :keywords: tutorial, get started, code example + :description: Learn to connect a Go application to a MongoDB Atlas cluster using the MongoDB Go Driver, including setting up a project, creating a cluster, and running queries. .. include:: /includes/quick-start/overview.rst diff --git a/source/usage-examples.txt b/source/usage-examples.txt index 96c879e4..a1a82df0 100644 --- a/source/usage-examples.txt +++ b/source/usage-examples.txt @@ -16,6 +16,7 @@ Usage Examples .. meta:: :keywords: read, write, example, code example + :description: Explore Go usage examples for common MongoDB operations, including finding, inserting, updating, and deleting documents, as well as monitoring data changes. .. toctree:: diff --git a/source/usage-examples/bulkWrite.txt b/source/usage-examples/bulkWrite.txt index d4158b33..8a21d761 100644 --- a/source/usage-examples/bulkWrite.txt +++ b/source/usage-examples/bulkWrite.txt @@ -4,6 +4,9 @@ Perform Bulk Operations ======================= +.. meta:: + :description: Perform bulk write operations on a collection using the bulkWrite() method in the MongoDB Go Driver, including replace and update actions. + You can perform bulk write operations on a collection by using the ``BulkWrite()`` method. diff --git a/source/usage-examples/command.txt b/source/usage-examples/command.txt index 7a4d1bd4..82bcecce 100644 --- a/source/usage-examples/command.txt +++ b/source/usage-examples/command.txt @@ -4,6 +4,9 @@ Run a Command Example ===================== +.. meta:: + :description: Learn how to execute commands on a MongoDB server using the runCommand() method in Go, with an example retrieving database statistics. + .. default-domain:: mongodb You can run commands directly on your MongoDB server by using the diff --git a/source/usage-examples/count.txt b/source/usage-examples/count.txt index 2167ebbc..7bbb821a 100644 --- a/source/usage-examples/count.txt +++ b/source/usage-examples/count.txt @@ -4,6 +4,9 @@ Count Documents Method Example ============================== +.. meta:: + :description: Learn to use estimatedDocumentCount() and countDocuments() methods in the MongoDB Go Driver to approximate and count documents in a collection. + You can get an approximation on the number of documents in a collection by using the ``EstimatedDocumentCount()`` method and an exact number of documents in a collection by using the ``CountDocuments()`` diff --git a/source/usage-examples/deleteMany.txt b/source/usage-examples/deleteMany.txt index 3a28233a..05984844 100644 --- a/source/usage-examples/deleteMany.txt +++ b/source/usage-examples/deleteMany.txt @@ -4,6 +4,9 @@ Delete Multiple Documents ========================= +.. meta:: + :description: Learn how to delete multiple documents from a collection using the deleteMany() method in the MongoDB Go Driver. + .. default-domain:: mongodb You can delete multiple documents in a collection by using the diff --git a/source/usage-examples/deleteOne.txt b/source/usage-examples/deleteOne.txt index cc8c3824..bd0baba3 100644 --- a/source/usage-examples/deleteOne.txt +++ b/source/usage-examples/deleteOne.txt @@ -4,6 +4,9 @@ Delete a Document ================= +.. meta:: + :description: Learn how to delete a document from a collection using the deleteOne() method in the MongoDB Go Driver. + You can delete a document in a collection by using the ``DeleteOne()`` method. diff --git a/source/usage-examples/distinct.txt b/source/usage-examples/distinct.txt index 5c056700..cb3ec1af 100644 --- a/source/usage-examples/distinct.txt +++ b/source/usage-examples/distinct.txt @@ -4,6 +4,9 @@ Retrieve Distinct Values of a Field =================================== +.. meta:: + :description: Retrieve distinct values of a field in a collection using the distinct() method in the MongoDB Go Driver. + You can retrieve a list of distinct values for a field across a collection by using the ``Distinct()`` method. diff --git a/source/usage-examples/find.txt b/source/usage-examples/find.txt index c8a10c8b..2a4c27fe 100644 --- a/source/usage-examples/find.txt +++ b/source/usage-examples/find.txt @@ -4,6 +4,9 @@ Find Multiple Documents ======================= +.. meta:: + :description: Find multiple documents in a collection using the find() method in the MongoDB Go Driver. + You can find multiple documents in a collection by using the ``Find()`` method. diff --git a/source/usage-examples/findOne.txt b/source/usage-examples/findOne.txt index 95a97d50..4d0e9737 100644 --- a/source/usage-examples/findOne.txt +++ b/source/usage-examples/findOne.txt @@ -4,6 +4,9 @@ Find a Document =============== +.. meta:: + :description: Retrieve a single document from a collection using the findOne() method in the MongoDB Go Driver. + .. default-domain:: mongodb You can retrieve a single document from a collection by using the diff --git a/source/usage-examples/insertMany.txt b/source/usage-examples/insertMany.txt index 443dab70..87550ff9 100644 --- a/source/usage-examples/insertMany.txt +++ b/source/usage-examples/insertMany.txt @@ -4,6 +4,9 @@ Insert Multiple Documents ========================= +.. meta:: + :description: Learn how to insert multiple documents into a collection using the insertMany() method in the MongoDB Go Driver. + .. default-domain:: mongodb You can insert multiple documents into a collection by using the ``InsertMany()`` diff --git a/source/usage-examples/insertOne.txt b/source/usage-examples/insertOne.txt index c4eff808..25cae79e 100644 --- a/source/usage-examples/insertOne.txt +++ b/source/usage-examples/insertOne.txt @@ -4,6 +4,9 @@ Insert a Document Example ========================= +.. meta:: + :description: Learn how to insert a document into a collection using the insertOne() method in the MongoDB Go Driver. + .. default-domain:: mongodb You can insert a document into a collection by using the ``InsertOne()`` diff --git a/source/usage-examples/replaceOne.txt b/source/usage-examples/replaceOne.txt index c92b09ef..953dc92a 100644 --- a/source/usage-examples/replaceOne.txt +++ b/source/usage-examples/replaceOne.txt @@ -4,6 +4,9 @@ Replace a Document ================== +.. meta:: + :description: Learn how to replace a document in a MongoDB collection using the replaceOne() method with the MongoDB Go Driver. + .. default-domain:: mongodb You can replace a document in a collection by using the ``ReplaceOne()`` diff --git a/source/usage-examples/struct-tagging.txt b/source/usage-examples/struct-tagging.txt index 5810fa9d..40a82b24 100644 --- a/source/usage-examples/struct-tagging.txt +++ b/source/usage-examples/struct-tagging.txt @@ -4,6 +4,9 @@ Use Struct Tags =============== +.. meta:: + :description: Learn how to use struct tags in Go to control BSON field names when inserting documents with the MongoDB Go Driver. + You can specify the way that the Go Driver converts Go structs to :manual:`BSON ` by using struct tags. diff --git a/source/usage-examples/updateMany.txt b/source/usage-examples/updateMany.txt index 97a81bee..eb2a2e4f 100644 --- a/source/usage-examples/updateMany.txt +++ b/source/usage-examples/updateMany.txt @@ -4,6 +4,9 @@ Update Multiple Documents ========================= +.. meta:: + :description: Learn how to update multiple documents in a collection using the updateMany() method in the MongoDB Go Driver. + You can update multiple documents in a collection by using the ``UpdateMany()`` method. diff --git a/source/usage-examples/updateOne.txt b/source/usage-examples/updateOne.txt index dfb37c87..919fb98c 100644 --- a/source/usage-examples/updateOne.txt +++ b/source/usage-examples/updateOne.txt @@ -4,6 +4,9 @@ Update a Document ================= +.. meta:: + :description: Learn how to update a document in a collection using the updateOne() method in the MongoDB Go Driver. + You can update a document in a collection by using the ``UpdateOne()`` method. diff --git a/source/whats-new.txt b/source/whats-new.txt index 0d2b3e9f..76bd0106 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -16,6 +16,7 @@ What's New .. meta:: :keywords: update, backward compatibility + :description: Discover the latest updates and features in the with the MongoDB Go Driver, including OpenID Connect support, streamlined APIs, and improved error handling in version 2.0. .. tip:: Release Notes