I am using Firebase in my Angular 4 app using AngularFire2. I have my database structure something like this.
{
"users": {
"-Kr6HDbj9tMxmxsQ8UnM": {
"name": "abc",
"email": "xyz@example.com",
"uid": "XLTPwGtFYcX6xVHbJGerHxGayT2"
},
"-Kr6JBzN_9PZAMctYwt-": {
"name": "pqr",
"email": "pqr@example.com"
"uid": "cdIj8YOncYYiUIEJrb65ynfFcl2"
},
............
}
}
I want to retrieve the last two entries of this data structure but exclude the data where uid is not equal to auth.uid
.