{"repo":"anishkny/integrify","free":true,"listed":false,"github":"https://github.com/anishkny/integrify","clone":"git clone https://github.com/anishkny/integrify.git","description":"🤝 Enforce referential and data integrity in Cloud Firestore using triggers","language":"TypeScript","stars":110,"topics":["firebase","firestore","firebase-trigger","firebase-functions","referential-integrity","data-integrity","serverless"],"license":"MIT","category":"databases-storage","readme_excerpt":"𝚒𝚗𝚝𝚎𝚐𝚛𝚒𝚏𝚢 🤝 Enforce referential and data integrity in Cloud Firestore using triggers Introductory blog post Usage Deploy to Firebase by executing: Rules File Alternately, rules can be specified in a file named integrify.rules.js . Collection Groups ( isCollectionGroup ) Firestore allows searching over multiple collections (a.k.a. collection group) with the same name at any level in the database. This is called a collection group query. Integrify allows you to replicate tracked master attributes into (optionally) collection groups linked by a foreign key using the isCollectionGroup parameter (see above) in the REPLICATE ATTRIBUTES rule. Similarly, you can delete references in a collection group (instead of just a collection) using the isCollectionGroup in the DELETE REFERENCES rule. Note: You need to first create the appropriate index to be able to use Collection Group Queries. The first time you attempt to use it, Firebase will throw an error message with a link which when clicked will prompt you to create the appropriate index. For example: For more help, see here.","default_branch":null,"files":null,"tree":[],"storefront":"/r/anishkny","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/anishkny/integrify/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}