Understanding Moralis Stream Extension's Firestore DB Rules

Hi
In Moralis Streams extension in Firestore DB, the security rules given by it are

rules_version = '2';

service cloud.firestore {
  match /databases/{database}/documents {
    match /moralis/{collectionType}/{collectionName}/{id} {
      allow read;
      allow write: if false;
    }
  }
}

My query is doesn’t the above rule restrict all the writes and does allow only reads. But the cloud function should still be able to write documents to db I believe. Please help me understand it better. So, I can define rules such that only cloud function can write and rest all of application can only read

Hi @dev_14

You can modify the firebase as per your requirement. It will not affect adding new streams.

Writing was disabled to restrict any client users from editing the data.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.