the collection name is the specific user id i want to retrieve data for the specific user. how can i do that. this is the screen shot of my database 1 i tried this code but it return only the 1st collection because of the array
StreamBuilder(
stream: Firestore.instance.collection("/userdata").snapshots(),
builder: (context, snapshot) {
gnickname = snapshot.data.documents[0]["Nickname"];
gphotourl = snapshot.data.documents[0]["photoURL"];})
userdatacollection right, but you are only getting the first one?