Skip to content

Commit 7d3e1af

Browse files
DOCSP-38893 Usage Example Links on UE Landing (#363)
(cherry picked from commit 58e97ac)
1 parent e54beee commit 7d3e1af

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

source/usage-examples.txt

+28-10
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@
44
Usage Examples
55
==============
66

7-
.. default-domain:: mongodb
8-
97
.. contents:: On this page
108
:local:
119
:backlinks: none
1210
:depth: 1
1311
:class: singlecol
1412

13+
.. facet::
14+
:name: genre
15+
:values: reference
16+
17+
.. meta::
18+
:keywords: read, write, example, code example
19+
1520
.. toctree::
1621

1722
/usage-examples/find-operations
@@ -78,18 +83,31 @@ You can use `GoDotEnv <https://github.com/joho/godotenv>`__ to define
7883
your environment variable.
7984

8085
Add the following application configuration in your ``.env`` file at the
81-
root of your project. To learn more, see the
86+
root of your project, replacing the placeholders with the values for your
87+
deployment's connection string. To learn more, see the
8288
`GoDotEnv documentation <https://github.com/joho/godotenv#usage>`__.
8389

8490
.. code-block::
8591

8692
MONGODB_URI=mongodb+srv://<user>:<password>@<cluster-url>?retryWrites=true&w=majority
8793

88-
.. note::
89-
90-
Replace the preceding connection string with :ref:`your MongoDB deployment's connection string <golang-usage-examples-connection-string>`.
91-
92-
.. _golang-usage-examples-connection-string:
93-
94-
94+
Examples
95+
--------
9596

97+
You can find usage examples for the following tasks:
98+
99+
- :ref:`golang-find-one`
100+
- :ref:`golang-find-multiple`
101+
- :ref:`golang-insert-one`
102+
- :ref:`golang-insert-many`
103+
- :ref:`golang-update-one`
104+
- :ref:`golang-update-many`
105+
- :ref:`golang-replace`
106+
- :ref:`golang-delete-one`
107+
- :ref:`golang-delete-many`
108+
- :ref:`golang-bulk-ops-usage-example`
109+
- :ref:`golang-watch`
110+
- :ref:`golang-count-usage-example`
111+
- :ref:`golang-distinct-usage-example`
112+
- :ref:`golang-run-command-usage-example`
113+
- :ref:`golang-struct-tags-usage-example`

source/usage-examples/struct-tagging.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _golang-struct-tags-usage-example:
2+
13
===============
24
Use Struct Tags
35
===============

0 commit comments

Comments
 (0)