File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,11 @@ access to the underlying raw BSON bytes. To use ``RawBSONDocument`` objects to r
132132documents in your collection, set the ``document_class`` parameter of the ``MongoClient``
133133constructor to ``RawBSONDocument``.
134134
135+ .. note::
136+
137+ ``RawBSONDocument`` objects are read-only. To modify a ``RawBSONDocument``, you must
138+ first convert it to a {+language+} dictionary.
139+
135140The following example configures a ``MongoClient`` object to use ``RawBSONDocument`` objects
136141to model the collection, then retrieves the sample document from the preceding examples:
137142
@@ -153,11 +158,6 @@ to model the collection, then retrieves the sample document from the preceding e
153158
154159 <class 'bson.raw_bson.RawBSONDocument'>
155160
156- .. note::
157-
158- ``RawBSONDocument`` objects are read-only. To modify a ``RawBSONDocument``, you must
159- first convert it to a {+language+} dictionary.
160-
161161API Documentation
162162-----------------
163163
You can’t perform that action at this time.
0 commit comments