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/village.graphql

62 lines
861 B
GraphQL

type Village {
id: Int!
name: String!
points: Int!
x: Int!
y: Int!
bonus: Int!
player: Player @goField(forceResolver: true)
}
type VillageList {
items: [Village!]
total: Int!
}
input VillageFilter {
id: [Int!]
idNEQ: [Int!]
name: [String!]
nameNEQ: [String!]
nameMATCH: String
nameIEQ: String
points: Int
pointsGT: Int
pointsGTE: Int
pointsLT: Int
pointsLTE: Int
xGT: Int
xGTE: Int
xLT: Int
xLTE: Int
yGT: Int
yGTE: Int
yLT: Int
yLTE: Int
xy: [String!]
bonus: Int
bonusGT: Int
bonusGTE: Int
bonusLT: Int
bonusLTE: Int
playerID: [Int!]
playerIDNEQ: [Int!]
playerFilter: PlayerFilter
}
extend type Query {
villages(
server: String!
filter: VillageFilter
limit: Int
offset: Int
sort: [String!]
): VillageList!
village(server: String!, id: Int!): Village
}