Skip to content

Commit 0e558da

Browse files
authored
DOCSP-35827: Update SetComment() parameter type (#340)
* DOCSP-35827: Update SetComment() parameter type * what's new * vale * RR feedback * formatting
1 parent 05d33c0 commit 0e558da

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

source/fundamentals/crud/read-operations/retrieve.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ following methods:
300300
| Default: ``nil``
301301

302302
* - ``SetComment()``
303-
- | An arbitrary string to help trace the operation through the database profiler, currentOp and logs.
303+
- | An arbitrary string or document that allows you to trace the operation through the database profiler, currentOp, and logs.
304304
| Default: ``""``
305305

306306
* - ``SetHint()``

source/whats-new.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ What's New in 2.0
5757

5858
The 2.0 {+driver-short+} release includes the following improvements and fixes:
5959

60+
- The ``Comment`` field in any options struct takes a value of type ``any`` instead of type
61+
``string``. To set this field, you can use the ``SetComment()`` method and pass a parameter
62+
of type ``any``.
63+
6064
- Updates to monitoring event documents:
6165

6266
- The ``CommandStartedEvent`` and ``CommandFinishedEvent`` structs

0 commit comments

Comments
 (0)