Skip to content

Commit

Permalink
DOCSP-29782: change how google sees change stream pages (mongodb#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustagir authored May 12, 2023
1 parent f73dc9c commit b3e4b01
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 20 deletions.
3 changes: 3 additions & 0 deletions config/redirects
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ define: versions 1.7 1.8 1.9 1.10 1.11 master

raw: ${prefix}/ -> ${base}/current/
raw: ${prefix}/stable -> ${base}/current/

[*-master]: ${prefix}/${version}/fundamentals/crud/read-operations/watch/ -> ${base}/${version}/fundamentals/crud/read-operations/changestream/
[*-master]: ${prefix}/${version}/usage-examples/watch/ -> ${base}/${version}/usage-examples/changestream/
9 changes: 2 additions & 7 deletions source/fundamentals/crud/read-operations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ Read Operations
- :ref:`golang-limit`
- :ref:`golang-project`
- :ref:`golang-search-text`
- :ref:`golang-watch-changes`

..
- :doc:`/fundamentals/crud/read-operations/geo`
- :ref:`golang-monitor-changes`

.. toctree::
:caption: Read Operations
Expand All @@ -34,6 +31,4 @@ Read Operations
/fundamentals/crud/read-operations/limit
/fundamentals/crud/read-operations/project
/fundamentals/crud/read-operations/text
/fundamentals/crud/read-operations/watch
..
/fundamentals/crud/read-operations/geo
/fundamentals/crud/read-operations/changestream
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
.. _golang-watch-changes:
.. _golang-monitor-changes:

=================
Watch for Changes
=================
====================
Monitor Data Changes
====================

.. meta::
:description: Learn about opening change streams and monitoring data changes in MongoDB by using the {+driver-long+}.

.. contents:: On this page
:local:
Expand Down Expand Up @@ -229,7 +233,7 @@ outputs the ``"fullDocument"`` value in the change event document.
Additional Information
----------------------

For a runnable example of a change stream, see :ref:`golang-watch`.
For a runnable example of a change stream, see :ref:`golang-usageex-monitor-changes`.

For more information on change streams, see :manual:`Change Streams </changeStreams/>`.

Expand Down
6 changes: 3 additions & 3 deletions source/quick-reference.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,15 @@ their related reference and API documentation.

.. output::
:language: go
:visible: false
:visible: false

[{type Chrysanthemum}, {rating 5} ... ]
[{type Oolong}, ... ]

* - | **Watch for Changes**
* - | **Monitor Data Changes**
|
| `API Documentation <{+api+}/mongo#Collection.Watch>`__
| :ref:`Usage Example <golang-watch>`
| :ref:`Usage Example <golang-usageex-monitor-changes>`

- .. code-block:: go
:copyable: true
Expand Down
2 changes: 1 addition & 1 deletion source/usage-examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Usage Examples
/usage-examples/find-operations
/usage-examples/write-operations
/usage-examples/bulkWrite
/usage-examples/watch
/usage-examples/changestream
/usage-examples/count
/usage-examples/distinct
/usage-examples/command
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
.. _golang-watch:
.. _golang-usageex-monitor-changes:

=================
Watch for Changes
=================
====================
Monitor Data Changes
====================

.. default-domain:: mongodb
.. meta::
:description: Learn by example: how to monitor data changes in MongoDB by using the {+driver-long+}.

You can open a change stream on a ``MongoCollection``,
``MongoDatabase``, or ``MongoClient`` by using the ``Watch()`` method.
Expand Down Expand Up @@ -55,7 +57,7 @@ Additional Information
To learn more about opening a change stream and handling
potential errors, see:

- Fundamentals page on :ref:`change streams <golang-watch-changes>`
- Fundamentals page on :ref:`change streams <golang-monitor-changes>`
- MongoDB Server Manual :manual:`Change Streams Documentation </changeStreams>`

API Documentation
Expand Down

0 comments on commit b3e4b01

Please sign in to comment.