I'm having an issue with retrieving certain data from Firebase and i tried it many ways. I want to get for instance, city data from thee current user. Instead of getting city name, I get 'Query snapshot' value on city watch list.
void addToFb() async {
final User user = FirebaseAuth.instance.currentUser;
final uid = user.uid;
final city = await FirebaseFirestore.instance
.collection('Users')
.doc(uid)
.collection("city")
.get();
dbRef.push().set({
"name": nameController.text,
"author": authorController.text,
"city": city,
"category": dropdownValue,
"publisher": publisherController.text,
"years": yearsController.text,
"info": infoController.text,
"ownerid": uid