Let's say that we have simple data structure:
"games": {
"{gameId}" {
"title": "Chess",
"playedBy" : {
"{userId}" : true,
"{userId}" : true
}
}
}
There are just games and every game has data about users who played in this game. Now I want to get all games where specified user (let's say his id is "1234567"
) didn't play. I have to query games where "playedBy"
does not contain "1234567"
.
How can I achieve that with Firebase?
Every language where Firebase works will be appreciated.