From 371cf5c2e2ff6ab7dd7853b06e993ae3bc408bca Mon Sep 17 00:00:00 2001 From: Caitlin Davey Date: Thu, 24 Oct 2024 15:32:42 -0400 Subject: [PATCH] Following guidance, removing nested components from tables (#178) (cherry picked from commit 473088d0d40a91925406d164b95cf664d8adf6b3) --- .../connection/mongoclientsettings.txt | 18 ++++++++---------- .../document-data-format-data-class.txt | 8 +++----- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/source/fundamentals/connection/mongoclientsettings.txt b/source/fundamentals/connection/mongoclientsettings.txt index 84943672..72b1e855 100644 --- a/source/fundamentals/connection/mongoclientsettings.txt +++ b/source/fundamentals/connection/mongoclientsettings.txt @@ -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 diff --git a/source/fundamentals/data-formats/document-data-format-data-class.txt b/source/fundamentals/data-formats/document-data-format-data-class.txt index 2a7171fd..aa47b367 100644 --- a/source/fundamentals/data-formats/document-data-format-data-class.txt +++ b/source/fundamentals/data-formats/document-data-format-data-class.txt @@ -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>`__