sendou.ink/schema.graphql
2020-11-02 18:01:36 +02:00

88 lines
1.6 KiB
GraphQL

### This file was generated by Nexus Schema
### Do not make changes to this file directly
type Mutation {
updateUserProfile(profile: UpdateUserProfileInput!): Boolean!
}
type Player {
"""
Set of names player has had in Top 500 results. The most recent one is the first one of the list.
"""
names: [String!]!
placements(after: XRankPlacementWhereUniqueInput, before: XRankPlacementWhereUniqueInput, first: Int, last: Int): [XRankPlacement!]!
playerId: String!
user: User
}
input PlayerIdModeMonthYearCompoundUniqueInput {
mode: RankedMode!
month: Int!
playerId: String!
year: Int!
}
type Profile {
bio: String
country: String
customUrlPath: String
sensMotion: Float
sensStick: Float
twitchName: String
twitterName: String
weaponPool: [String!]!
youtubeId: String
}
type Query {
getUserByIdentifier(identifier: String!): User
getXRankPlacements(mode: RankedMode!, month: Int!, year: Int!): [XRankPlacement!]!
}
enum RankedMode {
CB
RM
SZ
TC
}
input UpdateUserProfileInput {
bio: String
country: String
customUrlPath: String
sensMotion: Float
sensStick: Float
twitchName: String
twitterName: String
weaponPool: [String!]!
youtubeId: String
}
type User {
avatarUrl: String
discordId: String!
fullUsername: String!
id: Int!
profile: Profile
profilePath: String!
}
type XRankPlacement {
id: Int!
mode: RankedMode!
month: Int!
player: Player!
playerId: String!
playerName: String!
ranking: Int!
weapon: String!
xPower: Float!
year: Int!
}
input XRankPlacementWhereUniqueInput {
id: Int
playerId_mode_month_year: PlayerIdModeMonthYearCompoundUniqueInput
}