bastienrobert/la-ferme

View on GitHub
packages/server/app/graphql/types/room.graphql

Summary

Maintainability
Test Coverage
type Room {
  boxID: UUID!
  gameUUID: UUID!
  playerUUID: UUID!
  creatorUUID: UUID!
  users: [User]!
}

extend type Mutation {
  joinRoom(boxID: UUID!, userUUID: UUID!): Room!
}

extend type Subscription {
  connectedUsers(boxID: UUID!): Room!
}