Skip to content

Commit ef1807e

Browse files
author
Mike Dirolf
committed
minor: docs
1 parent b9b7b5e commit ef1807e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pymongo/collection.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,14 @@ def update(self, spec, document,
209209
:Parameters:
210210
- `spec`: a SON object specifying elements which must be present for
211211
a document to be updated
212-
- `document`: a SON object specifying the fields to be changed in the
213-
selected document, or (in the case of an upsert) the document to
214-
be inserted
212+
- `document`: a SON object specifying the document to be used for the
213+
update or (in the case of an upsert) insert. For more information
214+
on update syntax / modifiers see the MongoDB wiki_.
215215
- `upsert` (optional): perform an upsert operation
216216
- `manipulate` (optional): manipulate the document before updating?
217217
- `safe` (optional): check that the update succeeded?
218+
219+
.. _wiki: http://www.mongodb.org/display/DOCS/Updating
218220
"""
219221
if not isinstance(spec, types.DictType):
220222
raise TypeError("spec must be an instance of dict")

0 commit comments

Comments
 (0)