@@ -528,6 +528,16 @@ const translations = {
528
528
description : 'returns the $latencyStats aggregation for the collection. Takes an options document with an optional boolean \'histograms\' field.' ,
529
529
example : 'db.latencyStats({ histograms: true })'
530
530
} ,
531
+ initializeUnorderedBulkOp : {
532
+ link : 'https://docs.mongodb.com/manual/reference/method/db.collection.initializeUnorderedBulkOp' ,
533
+ description : 'Initializes an unordered bulk command. Returns an instance of Bulk' ,
534
+ example : 'db.initializeUnorderedBulkOp()'
535
+ } ,
536
+ initializeOrderedBulkOp : {
537
+ link : 'https://docs.mongodb.com/manual/reference/method/db.collection.initializeOrderedBulkOp' ,
538
+ description : 'Initializes an ordered bulk command. Returns an instance of Bulk' ,
539
+ example : 'db.initializeOrderedBulkOp()'
540
+ }
531
541
}
532
542
}
533
543
} ,
@@ -1222,6 +1232,97 @@ const translations = {
1222
1232
} ,
1223
1233
attributes : { }
1224
1234
} ,
1235
+ Bulk : {
1236
+ help : {
1237
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk' ,
1238
+ description : 'Bulk operations builder used to construct a list of write operations to perform in bulk for a single collection. To instantiate the builder, use either the db.collection.initializeOrderedBulkOp() or the db.collection.initializeUnorderedBulkOp() method.' ,
1239
+ attributes : {
1240
+ insert : {
1241
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.insert/' ,
1242
+ description : 'Adds an insert to the bulk operation.' ,
1243
+ example : 'db.insert(<document>)'
1244
+ } ,
1245
+ execute : {
1246
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.execute/' ,
1247
+ description : 'Executes the bulk operation.' ,
1248
+ example : 'bulkOp.execute()' ,
1249
+ } ,
1250
+ find : {
1251
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.find/' ,
1252
+ description : 'Adds a find to the bulk operation.' ,
1253
+ example : 'bulkOp.find(<filter>)' ,
1254
+ } ,
1255
+ getOperations : {
1256
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.getOperations/' ,
1257
+ description : 'Returns the batches executed by the bulk write.' ,
1258
+ example : 'bulkOp.getOperations()' ,
1259
+ } ,
1260
+ tojson : {
1261
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.tojson/' ,
1262
+ description : 'Returns a JSON document that contains the number of operations and batches in the Bulk() object.' ,
1263
+ example : 'bulkOp.tojson()' ,
1264
+ } ,
1265
+ toString : {
1266
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.toString/' ,
1267
+ description : 'Returns as a string a JSON document that contains the number of operations and batches in the Bulk() object.' ,
1268
+ example : 'bulkOp.toString()' ,
1269
+ }
1270
+ }
1271
+ }
1272
+ } ,
1273
+ BulkFindOp : {
1274
+ help : {
1275
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.find' ,
1276
+ description : 'Bulk operations builder returned after Bulk.find()' ,
1277
+ attributes : {
1278
+ 'arrayFilters' : {
1279
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.find.arrayFilters/' ,
1280
+ description : 'Adds an arrayFilter to the bulk operation.' ,
1281
+ example : 'bulkOp.find(...).arrayFilters(<array of filters)' ,
1282
+ } ,
1283
+ 'hint' : {
1284
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.find.hint/' ,
1285
+ description : 'Adds an hint to the bulk operation.' ,
1286
+ example : 'bulkOp.find(...).hint(<hintd document>)' ,
1287
+ } ,
1288
+ 'collation' : {
1289
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.find.collation/' ,
1290
+ description : 'Not currently implemented, use db.collection.bulkWrite as an alternative' ,
1291
+ example : 'bulkOp.find(...).collation(<collation doc>)' ,
1292
+ } ,
1293
+ 'remove' : {
1294
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.find.remove/' ,
1295
+ description : 'Adds an remove to the bulk operation.' ,
1296
+ example : 'bulkOp.find(...).remove()' ,
1297
+ } ,
1298
+ 'removeOne' : {
1299
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.find.removeOne/' ,
1300
+ description : 'Adds an removeOne to the bulk operation.' ,
1301
+ example : 'bulkOp.find(...).removeOne()' ,
1302
+ } ,
1303
+ 'replaceOne' : {
1304
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.find.replaceOne/' ,
1305
+ description : 'Adds an replaceOne to the bulk operation.' ,
1306
+ example : 'bulkOp.find(...).replaceOne(<document>)' ,
1307
+ } ,
1308
+ 'updateOne' : {
1309
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.find.updateOne/' ,
1310
+ description : 'Adds an updateOne to the bulk operation.' ,
1311
+ example : 'bulkOp.find(...).updateOne(<document>)' ,
1312
+ } ,
1313
+ 'update' : {
1314
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.find.update/' ,
1315
+ description : 'Adds an update to the bulk operation.' ,
1316
+ example : 'bulkOp.find(...).update(<document>)' ,
1317
+ } ,
1318
+ 'upsert' : {
1319
+ link : 'https://docs.mongodb.com/manual/reference/method/Bulk.find.upsert/' ,
1320
+ description : 'Adds an upsert to the bulk operation updates for this find(...).' ,
1321
+ example : 'bulkOp.find(...).upsert()' ,
1322
+ }
1323
+ }
1324
+ }
1325
+ }
1225
1326
}
1226
1327
} ,
1227
1328
'transport-browser' : {
0 commit comments