This repository has been archived on 2022-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
api/graphql/schema/player_history.graphql
Kichiyaki 05efc69b31 [WIP] - refactor limit, sort, offset
- update the Server/PlayerHistory repository and usecase
2020-11-21 10:50:52 +01:00

56 lines
1.1 KiB
GraphQL

type PlayerHistoryRecord {
player: Player @goField(forceResolver: true)
totalVillages: Int!
points: Int!
rank: Int!
rankAtt: Int!
scoreAtt: Int!
rankDef: Int!
scoreDef: Int!
rankSup: Int!
scoreSup: Int!
rankTotal: Int!
scoreTotal: Int!
tribe: Tribe @goField(forceResolver: true)
createDate: Time!
}
type PlayerHistory {
total: Int!
items: [PlayerHistoryRecord!]
}
input PlayerHistoryFilter {
playerID: [Int!]
playerIDNEQ: [Int!]
createDate: Time
createDateGT: Time
createDateGTE: Time
createDateLT: Time
createDateLTE: Time
offset: Int
@deprecated(
reason: "Use a new variable added to the query playerHistory - `offset`."
)
limit: Int
@deprecated(
reason: "Use a new variable added to the query playerHistory - `limit`."
)
sort: String
@deprecated(
reason: "Use a new variable added to the query playerHistory - `sort`."
)
}
extend type Query {
playerHistory(
server: String!
filter: PlayerHistoryFilter
limit: Int
offset: Int
sort: [String!]
): PlayerHistory!
}