Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following guidance, removing nested components from tables #178

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading