Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4404

Provide access to raw result document when the server returns an error for a command

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 6.5.0
    • Affects Version/s: None
    • Component/s: Error
    • 2
    • Hide

      DRIVERS-2385:
      Introduces a new expectedError.errorResponse assertion for matching the full command response attached to an exception. Note that some drivers may need to skip tests for BulkWriteException and WriteException.

      Drivers should sync unified tests for Collection Management, CRUD, and Unified Test Runner ("valid") with c04f2ec.

      Show
      DRIVERS-2385 : Introduces a new expectedError.errorResponse assertion for matching the full command response attached to an exception. Note that some drivers may need to skip tests for BulkWriteException and WriteException. Drivers should sync unified tests for Collection Management, CRUD, and Unified Test Runner ("valid") with c04f2ec .
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Use Case

      As a... Node.js driver end user
      I want... to access all of the information the server returns when a command fails
      So that... I have more context on the failure

      Acceptance Criteria

      Implementation Requirements

      • Return raw result for server error message in error response, MongoServerError.errorResponse
      • File follow up to deal with enumerable properties in 7.0

      Testing Requirements

      • Sync unified tests for Collection Management, CRUD, and Unified Test Runner ("valid")
      • May need to skip tests for BulkWriteException and WriteException
      • In UTR, introduces a new expectedError.errorResponse assertion for matching the full command response attached to an exception.

      Documentation Requirements

      • Add API docs for MongoServerError.errorResponse

      Follow-up Requirements

      • File follow up to deal with enumerable properties in 7.0

        There are no Sub-Tasks for this issue.

            Assignee:
            aditi.khare@mongodb.com Aditi Khare
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: