getQuery static method
EliudQuery?
getQuery(
- FollowingDashboardModel followingDashboardModel,
- MemberModel member
Implementation
static EliudQuery? getQuery(
FollowingDashboardModel followingDashboardModel, MemberModel member) {
if (followingDashboardModel.view == FollowingView.followers) {
return EliudQuery(theConditions: [
EliudQueryCondition('followedId', isEqualTo: member.documentID),
]);
} else if (followingDashboardModel.view == FollowingView.following) {
return EliudQuery(theConditions: [
EliudQueryCondition('followerId', isEqualTo: member.documentID),
]);
}
return null;
}