Thank you so much for the explanation, Ryan. I was indeed trying to figure out how to setup relational data.
I'm a little insistent on using mongo as it's part of my exercises/studies with node.js. My approach to the current problem would be to have 3 Schema's
1 for developers that have an id
1 for Games that have a creator set to the id of the developer and have a list of users playing it.
1 for Users that have a game id (to which they belong), a list of id's of other users that are their friends and some space for game data (level, avatar, name, etc etc)
my url scheme (keeping CRUD in mind )would resemble something along the lines of
/developers //For developer account management
/games //Game creation/deletion, each game get's a unique token
/games/:token //Edit a specific game
/games/:token/users //List all users playing
/games/:token/users/:userid //CRUD operations for a specific user
With some extra methods for sending requests. Do i have the right approach in mind or am i grossly ignoring certain standards.
Please keep in mind i'm a game developer and this is my first ever experience in anything web backend related.