-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
As a Node driver engineer,
I want to store error information in exactly one place,
So that we don't need to be responsible for maintaining the server information in two places.
The server's actual error is stored both as the `errorResponse` field on the MongoServerError and has every property copied onto the server error (see https://github.com/mongodb/node-mongodb-native/blob/8ab5d19bee52bf1f0bc24a76586375a4825190f9/src/error.ts#L226).
Unknowns
n/a
Acceptance Criteria
Implementation Requirements
- Remove the logic that copies keys from the server error onto the MongoServerError and instead only provide the `errorResponse` field.
Documentation Requirements
- Remove API docs for MongoServerError enumerable keys
- has to be done after
-
NODE-4404 Provide access to raw result document when the server returns an error for a command
-
- Closed
-