Skip to content

Commit 78f8709

Browse files
mongoKartgithub-actions[bot]
authored andcommitted
DOCSP-44845 - Fix tip box (#283)
(cherry picked from commit ab943f9)
1 parent 87c3bff commit 78f8709

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

source/whats-new.txt

+9-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,15 @@ The 3.0 driver release includes the following new features:
143143
.. tip:: MongoClientSettings
144144

145145
To enable client-side projection for all queries on a client, set the
146-
``TranslationOptions`` property of the ``MongoClientSettings`` object to ``true``.
146+
``TranslationOptions`` property of your ``MongoClientSettings`` object, as shown
147+
in the following example:
148+
149+
.. code-block:: csharp
150+
151+
clientSettings.TranslationOptions = new ExpressionTranslationOptions
152+
{
153+
EnableClientSideProjections = true
154+
};
147155

148156
To learn more about using the aggregation pipeline with the {+driver-short+}, see
149157
:ref:`csharp-aggregation`.

0 commit comments

Comments
 (0)