title: Run Firestore batch in Cloud Functions for Firebase
body: <p>In Cloud Functions for Firebase, I am trying to run admin.firestore.batch(), but I am receiving error "admin.firestore.batch is not a function", see (totally simplified) example.</p>
  
  <pre><code>exports.getTest = functions.https.onRequest((request, response) =&gt; {
    cors(request, response, () =&gt; {
      var batch = admin.firestore.batch(); // &lt;--- ERROR HERE
      var docRef = admin.firestore().doc('tariffs/1')
      batch.set(docRef, 'name', 'free');
      return batch.commit();
    }).then(() =&gt; {
      response.status(200).send({result: 'success'});
    });
  });
  </code></pre>
  
  <p>My package.json is </p>
  
  <pre><code>{
    "name": "functions",
    "description": "Cloud Functions for Firebase",
    "dependencies": {
      "cors": "^2.8.1",
      "firebase-admin": "^5.4.2",
      "firebase-functions": "^0.7.1"
    },
    "private": true
  } 
  </code></pre>
  
  <p>Is it possible to use firebase.firestore.batch() with Cloud Functions?</p>
  
  <p>Thank you</p>