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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              behackett Bernie Hackett
              Reporter:
              jesse A. Jesse Jiryu Davis
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: