Create CRUD functions for each interface
Closed this issue · 0 comments
DylanTom commented
For each interface, create CRUD functions in firebase/
. For each interface, create a file called {interface}.ts
There should be a minimum of these functions for each interface:
- Create - create an entry into firebase
- Read - fetch an entry from firebase (based on a query that makes sense, perhaps a lambda function so that we can query whatever we want? This is up to discretion)
- Update - if it exists, update the entry (like editing a profilel)
- Delete - remove the entry from firebase
Make sure type and schema is imported so that future developers are forced to follow the schema.