Home / IOS Development / Best Firestore structure for Notes app. : iOSProgramming

Best Firestore structure for Notes app. : iOSProgramming



I do not know if I should post here or not, so I’m sorry if I post the wrong error, I’m making a notebook connected to FireStore. I’m frustrated with how to structure the database. I was thinking of creating a collection for each user while they logged in, and with each note they create, I create a document for it with two entries [title, body]. or should I just create a collection and inside each user have a document and save the notes as a map. or if there’s a better way to do it, let me know when I’m new to this.


Source link