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/version.graphql
Kichiyaki fb84bdbc55 [WIP] - refactor limit, sort, offset
- update the Version/Village repository and usecase
2020-11-21 12:34:25 +01:00

74 lines
1.3 KiB
GraphQL

enum VersionCode {
PL
EN
DE
UK
IT
FR
US
NL
ES
RO
RU
GR
TR
CS
CH
PT
BR
HU
}
type Version {
tag: VersionCode!
@goField(forceResolver: true)
@deprecated(reason: "Use `code`.")
code: VersionCode!
name: String!
host: String!
timezone: String!
}
input VersionFilter {
tag: [VersionCode!] @deprecated(reason: "Use `code`.")
tagNEQ: [VersionCode!] @deprecated(reason: "Use `codeNEQ`.")
code: [VersionCode!]
codeNEQ: [VersionCode!]
host: [String!]
hostNEQ: [String!]
hostMATCH: String
hostIEQ: String
offset: Int
@deprecated(
reason: "Use a new variable added to the query versions - `offset`."
)
limit: Int
@deprecated(
reason: "Use a new variable added to the query versions - `limit`."
)
sort: String
@deprecated(
reason: "Use a new variable added to the query versions - `sort`."
)
}
type VersionList {
items: [Version!]
total: Int!
}
extend type Query {
langVersions(filter: VersionFilter): VersionList!
@deprecated(reason: "Use `versions`.")
langVersion(tag: VersionCode!): Version @deprecated(reason: "Use `version`.")
versions(
filter: VersionFilter
limit: Int
offset: Int
sort: [String!]
): VersionList!
version(code: VersionCode!): Version
}