No return type for InsertOne and InsertMany

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi 

      Please can you review the following for a future improvement:

      InsertOne(), InsertOneAsync(), InsertMany(), InsertManyAsync() methods do not return anything.  They should return something I would expect an object based on the other methods below:

      DeleteOne and DeleteOneAsync() returns a DeleteResult object 

      UpdateOne and UpdateOneAsync() returns an UpdateResult object

       

      I have worked around this using the BulkInsert/BulkInsertResult but the above insert methods should return an InsertResult object.

      The Java driver does return an InsertResult object.

       

      Many thanks

              Assignee:
              Unassigned
              Reporter:
              Nick Parker
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: