gridfs.GridFS.delete should return a DeleteResult

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API, GridFS
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Reported in this github PR:

      pymongo.Collection.delete_one returns a DeleteResult object which, among other things, provides the deleted_count attribute telling whether or not anything was actually deleted by the call. However, gridfs.GridFS.delete returns nothing regardless if a document is deleted. This PR changes the behavior of GridFS to more closely follow Collection by returning the DeleteResult from the underlying call to delete the document index.

              Assignee:
              Shane Harvey
              Reporter:
              Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: