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

66 lines
913 B
GraphQL
Raw Normal View History

2020-11-06 19:23:12 +00:00
enum VersionCode {
PL
EN
DE
UK
IT
FR
US
NL
ES
RO
RU
GR
TR
CS
CH
PT
BR
HU
}
type Version {
code: VersionCode!
name: String!
host: String!
timezone: String!
}
input VersionFilter {
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`."
)
2020-11-06 19:23:12 +00:00
limit: Int
@deprecated(
reason: "Use a new variable added to the query versions - `limit`."
)
2020-11-06 19:23:12 +00:00
sort: String
@deprecated(
reason: "Use a new variable added to the query versions - `sort`."
)
2020-11-06 19:23:12 +00:00
}
type VersionList {
items: [Version!]
total: Int!
}
extend type Query {
versions(
filter: VersionFilter
limit: Int
offset: Int
sort: [String!]
): VersionList!
2020-11-06 19:23:12 +00:00
version(code: VersionCode!): Version
}