My Firestore structure looks like this:
users > {User} > categories > Gas > transactions > {Transaction {amount: 42.00}}
I want to get all the Categories and the Transactions underneath.
What's the best way in doing that with Firestore?
To get the categories and for each get the Transactions underneath with a further query? Doesn't sound very optimal?
I have to make sure the query path is using the users id so people can't read other peoples data.