Goals
- 👩💻 Managing documents should be a great developer experience with simple implementations and TypeScript hints and warnings.
- 🔒 Data should be structured so that it’s easy to secure, but we shouldn’t have to constantly constuct long paths to the data we wish to manage.
- 🔎 Metadata like the date a post was created should be managed in the database for easy sorting and querying.
Implementation
The action utilities provided by@firebridge/cloud make it easy to create your own simple actions for performing database operations. For example:
firestoreAddfor adding documentsfirestoreDeletefor deleting documentsfirestoreGetfor reading documentsfirestoreSetfor setting documentsfirestoreUpdatefor updating documentsfirestoreMergefor merging documents