hi all, please help me with this problem that's driven me nuts for the entire day. I looked everywhere but just couldn't find anything similar to what I'm experiencing... my objective is to get comfortable working with data and relationships and possibly using that knowledge to build bigger things. unfortunately, i seem to have hit a wall.
The issue
I have a default user collection
I have a user_profile subcollection of users
subcollection is called user_profile and has fields like the user's height, weight, country etc.
user collection has a doc reference to user_profile
So during auth, I'm just using an FF template where I collect the email, and password and then "create account" through firebase auth action. The only fields set here are email and password.
now i take the users to the onboarding screen where they have other fields to fill out. ;like i mentioned previously; height, country etc.
On submit, I choose create document action (only because update document doesn't do anything). now i'm taken to another page where I want to show some values of fields in my user_profile collection.
But here is where I'm treated to the red screen of death. it goes away when i remove the query but i really want to know why and how to stop it for more seamless ff dev. This is the null value related to streambuilder error.
Extra info: I see that the document indeed gets created, and a collection gets created inside the user's document as well. Is this even supported?
Hopefully, that made sense...
Part II of the question
I remember seeing in a lot of places (docs/videos I guess), that the default users collection when dealing with firebase auth must have specific of fields , BUT WHY? I