I’ve connected to firebase and can pull data, push data, etc. and am having trouble with displaying a header with the date and all the activity under that date.
I have it structured as: User Profile > UID > Workouts > UID > Exercise, Date, Reps, Sets, Weight
First, is this a good structure (I’m a noob with databases)…
Second, how do i display the data in my activity feed with just one date and all the workouts for that date under that date header? … right now they’re pulling in all the data in order by date.
i would determine what are all of the potential queries before trying to lock into a specific data structure… based on your current question, i would restructure my data so that all workouts are stored under a date key.
Also you are using firebase realtime database, it might be easier to use firebase firestore
Thank you guys! I’m def going to attempt to move to Firestore, seems like a cleaner, simpler way. Was just scared off since it’s in Beta in the Ionic docs…