Home > database >  Flutter firebase check email exist inside firestore collection
Flutter firebase check email exist inside firestore collection

Time:03-23

I need to just check if user email exist in user collection or not. Right now I am doing like this

var check =  await FirebaseFirestore.instance.collection('users')
 .where('email', isEqualTo: userData['email']).snapshots();

But when I print check its showing

Instance of '_MapStream<QuerySnapshotPlatform, QuerySnapshot<Map<String, dynamic>>>'

How can I check that email exist in that collection or not ? Thanks

  • Related