2021-06-06 14:48:29 +00:00
|
|
|
"User variable in a room."
|
|
|
|
type UserVariable {
|
|
|
|
roomId: String!
|
|
|
|
userId: String!
|
|
|
|
variableName: String!
|
|
|
|
value: Int!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Query {
|
|
|
|
apiVersion: String!
|
|
|
|
variable(roomId: String!, userId: String!, variable: String!): UserVariable!
|
2021-06-06 15:45:43 +00:00
|
|
|
userRooms(userId: String!): UserRoomList!
|
|
|
|
}
|
|
|
|
|
|
|
|
"List of rooms a user is in."
|
|
|
|
type UserRoomList {
|
|
|
|
userId: String!
|
|
|
|
rooms: [Room!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
"A matrix room."
|
|
|
|
type Room {
|
|
|
|
roomId: String!
|
|
|
|
displayName: String!
|
2021-06-06 14:48:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
schema {
|
|
|
|
query: Query
|
|
|
|
}
|