I have the following document:
"players" : [
{
"id" : userid,
"name" : "dissident"
},
{
"teamId" : teamId,
"name" : "ink"
}
]
This is what I tried, but it is not working
this.afs.collection('matches', ref => ref.where('players', 'array-contains', {teamId: teamId}))