I am trying a filter a list of documents from a collection , one of a field in collection is Taskassignedto this field if equal to current user email .
i am trying to get data by using following code
return await Firestore.instance.collection('Task').getDocuments();
i need to filter the collection where Taskassigned to is equal to current user email. Appreciate the help.tried this
return await Firestore.instance.collection('Task').where('Taskassignedto',isequalto:email).getDocuments();
getting an error getter email isnt defined for the class FirebaseUser
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/77606a22-f323-45fd-89a5-e1966f28112d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/CAHWORbov4oCDZ%3Dkh-OyL2Az764vKHgY65AEP0KvtKCKFLu9rmg%40mail.gmail.com.