Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-429

Insert's, update's, remove's return values are under-documented

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.4
    • Affects Version/s: None
    • Component/s: None
    • None

      Return values for insert, update, and remove are poorly documented.

      insert returns document's _id, whether it's a safe insert or not. same for save(). update returns None for unsafe update. for safe update, something like

      {'ok': 1.0, 'n': 1}

      . same for remove().

      Also check on docs for command-helper return values.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: