35 lines
588 B
GraphQL
35 lines
588 B
GraphQL
type ServerStatsRecord {
|
|
activePlayers: Int!
|
|
inactivePlayers: Int!
|
|
players: Int!
|
|
activeTribes: Int!
|
|
inactiveTribes: Int!
|
|
tribes: Int!
|
|
bonusVillages: Int!
|
|
barbarianVillages: Int!
|
|
playerVillages: Int!
|
|
villages: Int!
|
|
createdAt: Time!
|
|
}
|
|
|
|
type ServerStats {
|
|
items: [ServerStatsRecord!]
|
|
total: Int!
|
|
}
|
|
|
|
input ServerStatsFilter {
|
|
createdAt: Time
|
|
createdAtGT: Time
|
|
createdAtGTE: Time
|
|
createdAtLT: Time
|
|
createdAtLTE: Time
|
|
|
|
offset: Int
|
|
limit: Int
|
|
sort: String
|
|
}
|
|
|
|
extend type Query {
|
|
serverStats(server: String!, filter: ServerStatsFilter): ServerStats!
|
|
}
|