tengen-io / server

:white_circle: Server implementation of the board game Go
MIT License
13 stars 4 forks source link

createGame mutation does not give back full game #10

Closed camirmas closed 5 years ago

camirmas commented 5 years ago
mutation {
  createGame(opponentId:2) {
    id
    playerTurnId
    players {
      user {
        id
        username
      }
    }
  }
}
{
  "data": {
    "createGame": {
      "id": "1",
      "playerTurnId": 1,
      "players": [
        {
          "user": {
            "id": "1",
            "username": "dude"
          }
        },
        {
          "user": null
        }
      ]
    }
  }
}