MCPcopy Index your code
hub / github.com/mongodb/node-mongodb-native / isAggregateError

Function isAggregateError

src/error.ts:119–121  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

117}
118
119function isAggregateError(e: unknown): e is Error & { errors: Error[] } {
120 return e != null && typeof e === 'object' && 'errors' in e && Array.isArray(e.errors);
121}
122
123/**
124 * @public

Callers 1

buildErrorMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected