Skip to content

Commit

Permalink
Following guidance, removing nested components from tables (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
caitlindavey authored Oct 24, 2024
1 parent 205ce95 commit 473088d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
18 changes: 8 additions & 10 deletions source/fundamentals/connection/mongoclientsettings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,16 @@ settings to modify the driver's behavior:
- Sets the host name to use to look up an SRV DNS record to find the
MongoDB hosts.

.. note::
When setting ``srvHost``, the driver does not process any
associated TXT records associated with the host.

When setting ``srvHost``, the driver does not process any
associated TXT records associated with the host.
If you want to enable the processing of TXT records, you must
specify the SRV host in the connection string using the
``applyConnectionString()`` method.

If you want to enable the processing of TXT records, you must
specify the SRV host in the connection string using the
``applyConnectionString()`` method.

.. literalinclude:: /examples/generated/MongoClientSettingsTest.snippet.srv-host-connection-string.kt
:language: kotlin
:emphasize-lines: 3
.. literalinclude:: /examples/generated/MongoClientSettingsTest.snippet.srv-host-connection-string.kt
:language: kotlin
:emphasize-lines: 3

* - ``srvMaxHosts()``
- | Sets the maximum number of hosts the driver can connect to when using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,10 @@ You can use the following annotations on data classes:
- Specifies the BSON type MongoDB uses to store the value. Use this
annotation only when you need to store a value as a different
BSON type than the data class property.

.. warning::

Your code might throw an exception if you include the
``BsonRepresentation`` annotation on a property that you store
as the same type as the data class property.
:red:`WARNING:` Your code might throw an exception if you include the
``BsonRepresentation`` annotation on a property that you store
as the same type as the data class property.

For reference information on these property annotations,
refer to the `org.bson.codecs.pojo.annotations <{+api+}/apidocs/bson/org/bson/codecs/pojo/annotations/package-summary.html>`__
Expand Down

0 comments on commit 473088d

Please sign in to comment.