title: Firestore triggers is just never call
body: <p>So I am trying to listen to the changes in all the documents of my collection Profile.</p>
  <p>I have look at the firestore documentation and I have try all the trigger (OnCreate, OnDelete, OnUpdate, OnWrite) but they just don't get call when I create or delete a document</p>
  <p>I have no idea why this is not working, it seems fine to me</p>
  <p>If you guys have an idea what is my problem, it will be very helpful !</p>
  <p>Here is my code</p>
  <p>I listen to the change like this :</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>exports.listenToProfileChange = functions.firestore.document('Profile/{uid}')
      .onWrite((snapshot, context) =&gt; {
              console.log(snapshot, context);
          });</code></pre>
  </div>
  </div>
  </p>
  <p>I create a profile like this :</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>application.post("/profile/create", (req: any, res:any) =&gt; {
      const profileContent = req.body;
      firebase.firestore().collection('Profile').doc(profileContent.uid).set(profileContent).then(() =&gt; {
          res.status(201).send('Document is create with success')
      }).catch((error) =&gt; {
          res.status(404).send(error);
      })
  })</code></pre>
  </div>
  </div>
  </p>