enter image description here I want to check 2 collections(students & teacher) and login into this user if this record exists. Please help me...
You can create two references:
final reference1 = Firestore.instance.collection("collection1");
final reference2 = Firestore.instance.collection("collection2");
then you can query in these collection:
final result1 = await reference1.where("key", isEqualTo: value).get()
final result2 = await reference2.where("key", isEqualTo: value).get()
then according to your result, you can log in your user.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.