Bulk operations

You can perform bulk retrieval operations by using the `getMulti` variant of the `get` method.

This method works identically to its singular counterpart but instead accepts an array of keys to retrieve and returns an object where the object key matches your document ID and the object value is the result that you would normally expect to see from a singular operation.

Here's an example that shows how to use the getMulti() method:

var myBucket = myCluster.openBucket();
myBucket.get(
    ['document_name_1', 'document_name_2'],
    function(err, res) {
  if (err) {
    console.log('one or more operations failed', err);
    return;
  }

  console.log('success!', res);
});

Sample output from the example:

success! {
    'document_name_1': { cas: { '0': 887463, '1': 95382074 }, value:{x:1} }
    'document_name_2': { cas: { '0': 678028653, '1': 492028321 }, value:{x:2} }