ur setting the key of the next item to be the number of docs currently in the db. If you remove any but the last document and then try to create one again, you will overwrite data
Ah the code for createEventFragment was mostly just to demonstrate the db working. It will have to be changed in the final product because the Event model will need all fields
ur setting the key of the next item to be the number of docs currently in the db. If you remove any but the last document and then try to create one again, you will overwrite data