I came across this problem, and can't figure it out. I have a node of users where I store all users
{
  users: {
    uid: {
      displayName: "stringOfSomeKind"
    }
    uid2: {
      displayName: "moreStrings"
    }
    uid3: {
      displayName: "evenMoreStrings"
    }
    ...
  }
}
And then I have a node of events, and inside of the events node I have all users assigned to that event
{
  event_name: {
    asigned_users:"uid","uid2"
  }
}
So the problem comes when the event admin wants to assign new users (from the users node) to the event, and I want to get only the users that are not already in the event (uid3 in this case). How can I do that? there is some sort of query I can run? I'm kinda new to no-relational databases so any advise would help
 
     
     
    