File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,11 @@ export type AnyBulkWriteOperation<TSchema extends Document = Document> =
130
130
| { deleteOne : DeleteOneModel < TSchema > }
131
131
| { deleteMany : DeleteManyModel < TSchema > } ;
132
132
133
- /** @public */
133
+ /**
134
+ * @public
135
+ *
136
+ * @deprecated Will be made internal in 5.0
137
+ */
134
138
export interface BulkResult {
135
139
ok : number ;
136
140
writeErrors : WriteError [ ] ;
@@ -176,6 +180,7 @@ export class Batch<T = Document> {
176
180
* The result of a bulk write.
177
181
*/
178
182
export class BulkWriteResult {
183
+ /** @deprecated Will be removed in 5.0 */
179
184
result : BulkResult ;
180
185
181
186
/**
@@ -295,7 +300,11 @@ export class BulkWriteResult {
295
300
return this . result . writeErrors ;
296
301
}
297
302
298
- /** Retrieve lastOp if available */
303
+ /**
304
+ * Retrieve lastOp if available
305
+ *
306
+ * @deprecated Will be removed in 5.0
307
+ */
299
308
getLastOp ( ) : Document | undefined {
300
309
return this . result . opTime ;
301
310
}
@@ -322,6 +331,7 @@ export class BulkWriteResult {
322
331
}
323
332
}
324
333
334
+ /* @deprecated Will be removed in 5.0 release */
325
335
toJSON ( ) : BulkResult {
326
336
return this . result ;
327
337
}
You can’t perform that action at this time.
0 commit comments