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
Raw Permalink Normal View History

2020-06-02 15:45:21 +00:00
type Village {
id: Int!
name: String!
points: Int!
x: Int!
y: Int!
bonus: Int!
player: Player @goField(forceResolver: true)
}
2020-06-28 11:55:37 +00:00
type VillageList {
2020-06-02 15:45:21 +00:00
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
2020-06-18 15:15:31 +00:00
xGT: Int
xGTE: Int
xLT: Int
xLTE: Int
yGT: Int
yGTE: Int
yLT: Int
yLTE: Int
xy: [String!]
2020-06-18 15:15:31 +00:00
2020-06-02 15:45:21 +00:00
bonus: Int
bonusGT: Int
bonusGTE: Int
bonusLT: Int
bonusLTE: Int
playerID: [Int!]
playerIDNEQ: [Int!]
playerFilter: PlayerFilter
2020-06-02 15:45:21 +00:00
}
extend type Query {
villages(
server: String!
filter: VillageFilter
limit: Int
offset: Int
sort: [String!]
): VillageList!
2020-06-02 15:45:21 +00:00
village(server: String!, id: Int!): Village
}