50 lines
956 B
GraphQL
50 lines
956 B
GraphQL
type ServerStatsRecord {
|
|
activePlayers: Int!
|
|
inactivePlayers: Int!
|
|
players: Int!
|
|
activeTribes: Int!
|
|
inactiveTribes: Int!
|
|
tribes: Int!
|
|
bonusVillages: Int!
|
|
barbarianVillages: Int!
|
|
playerVillages: Int!
|
|
villages: Int!
|
|
createDate: Time!
|
|
}
|
|
|
|
type ServerStats {
|
|
items: [ServerStatsRecord!]
|
|
total: Int!
|
|
}
|
|
|
|
input ServerStatsFilter {
|
|
createDate: Time
|
|
createDateGT: Time
|
|
createDateGTE: Time
|
|
createDateLT: Time
|
|
createDateLTE: Time
|
|
|
|
offset: Int
|
|
@deprecated(
|
|
reason: "Use a new variable added to the query serverStats - `offset`."
|
|
)
|
|
limit: Int
|
|
@deprecated(
|
|
reason: "Use a new variable added to the query serverStats - `limit`."
|
|
)
|
|
sort: String
|
|
@deprecated(
|
|
reason: "Use a new variable added to the query serverStats - `sort`."
|
|
)
|
|
}
|
|
|
|
extend type Query {
|
|
serverStats(
|
|
server: String!
|
|
filter: ServerStatsFilter
|
|
limit: Int
|
|
offset: Int
|
|
sort: [String!]
|
|
): ServerStats!
|
|
}
|