title: how to Integrate firebase cloud functions, firestore, and google bigtable
body: <p>the docs for firestore say it doesn't support aggregation queries naturally and one of the options we should use is cloud function triggers (to precalculate values we can retrieve using simple query)</p>
  
  <p><a href="https://firebase.google.com/docs/firestore/solutions/aggregation#solution_cloud_functions" rel="nofollow noreferrer">https://firebase.google.com/docs/firestore/solutions/aggregation#solution_cloud_functions</a></p>
  
  <p>I want to do more advanced analytics and was thinking bigtable/bigquery might be a good fit.</p>
  
  <p>How do i go about calling gcp products from a firebase cloud function? (i assume it's possible)</p>
  
  <p>I can't seem to find any docs on this.</p>