title: How to import test data into Firebase Firestore emulator from production for easy testing?
body: <p>I am building a firebase function that listens to a trigger and sends a push notification to users. The trigger is based on firestore data that's too complex for me to manually re-recreate every time on firestore emulator.</p>
  
  <p>I tried emulating functions, but hooking up to firestore production, but seems like in this case, trigger functions don't work </p>
  
  <p>What I want to do is export my data from my production Firestore then import it into my emulator firestore, so that at least, the copy I am working with is closely mimicking what I have on prod; to be clear, the data is small, so I am not worried about downloading terabytes of data.</p>
  
  <p>I found a <a href="https://firebase.google.com/docs/emulator-suite/connect_and_prototype#set_up_baseline_data_for_testing" rel="noreferrer">way of importing data into an emulator</a>, but not sure if this would work with production data or how I would dump the data from production.</p>
  
  <pre><code>firebase emulators:start --import=./some-directory
  
  </code></pre>