We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ee9150 commit d5621c9Copy full SHA for d5621c9
src/cmap/wire_protocol/responses.ts
@@ -15,9 +15,9 @@ export class MongoDBResponse extends OnDemandDocument {
15
/** Indicates this document is a server error */
16
public get isError() {
17
let isError = this.ok === 0;
18
- isError ||= this.has('$err');
19
isError ||= this.has('errmsg');
20
isError ||= this.has('code');
+ isError ||= this.has('$err'); // The '$err' field is used in OP_REPLY responses
21
return isError;
22
}
23
0 commit comments