title: Increase firebase cloud firestore string upload size
body: <p>Hello I am using firebase and I am running into an error when I am trying to store a (large) data object into the database. Here is the exact error I am getting:</p>
  
  <p><code>ERROR Error: Uncaught (in promise): FirebaseError: [code=invalid-argument]: The value of property "values" is longer than 1048487 bytes.</code></p>
  
  <p>This is because firebase doesnt allow storage of strings larger than 1048487 bytes. (<a href="https://firebase.google.com/docs/firestore/manage-data/data-types" rel="nofollow noreferrer">documentation</a>).</p>
  
  <p>Has anyone experienced this before and found a way to increase the store limit? From what I have read it doesn't seem like purchasing a plan will fix this.</p>
  
  <p>Here is the code I am using to store the data just incase its needed:</p>
  
  <pre><code>  storeSearchItem(searchItem, userID, data) {
      this.db.collection('users').doc(userID).collection('searches').add({
        searchTerm: searchItem.searchTerm,
        searchDate: new Date().toString(),
        values: data, //this values property is huge, a couple megabytes
      });
    }
  </code></pre>