in my flutter app i need to create a new document and create and set value to a newfield in firestore,when the user creates an account. when user creates his account i call await Database().updateusername(email); which is
Future updateusername(String username) async {
final DocumentReference Docreference =
FirebaseFirestore.instance.collection("Songs").doc(username);
return await Docreference.update({"Username": username});
}
but i get this error
cloud_firestore/not-found] Some requested document was not found.
my firestore version is ^0.14.0+2
can someone help me on this issue