Update queries

master
Lertsenem 2020-07-07 16:13:23 +02:00
parent ba7843e3f5
commit 874188a20d
3 changed files with 25 additions and 14 deletions

View File

@ -1,17 +1,18 @@
query getCharsByTournamentIdAndPlayerIds($tournamentId:ID, $playerIds:[ID]) query getCharsByTournamentIdAndEntrantIds($tournamentId:ID, $entrantIds:[ID])
{ {
tournament(id:$tournamentId) tournament(id:$tournamentId)
{ {
events events
{ {
name name
numEntrants
sets sets
( (
perPage:100 perPage:100
page:1 page:1
filters: filters:
{ {
playerIds: $playerIds entrantIds: $entrantIds
} }
) )
{ {
@ -30,10 +31,6 @@ query getCharsByTournamentIdAndPlayerIds($tournamentId:ID, $playerIds:[ID])
selectionType selectionType
selectionValue selectionValue
entrant entrant
{
participants
{
player
{ {
id id
} }
@ -44,6 +41,4 @@ query getCharsByTournamentIdAndPlayerIds($tournamentId:ID, $playerIds:[ID])
} }
} }
} }
}
}

View File

@ -1,7 +1,8 @@
query getTournamentTopBySlug($id:String,$top:Int) query getTournamentTopBySlug($id:ID,$top:Int)
{ {
tournament(id:$id) tournament(id:$id)
{ {
id
slug slug
name name
startAt startAt
@ -13,6 +14,7 @@ query getTournamentTopBySlug($id:String,$top:Int)
events events
{ {
name name
numEntrants
videogame videogame
{ {
id id
@ -37,14 +39,20 @@ query getTournamentTopBySlug($id:String,$top:Int)
placement placement
entrant entrant
{ {
id
participants participants
{ {
gamerTag gamerTag
prefix prefix
player player
{ {
id user
twitterHandle {
authorizations(types: [TWITTER])
{
externalUsername
}
}
} }
} }

View File

@ -3,6 +3,7 @@ query getTournamentTopBySlug($slug:String,$top:Int)
tournament(slug:$slug) tournament(slug:$slug)
{ {
id id
slug
name name
startAt startAt
venueAddress venueAddress
@ -13,6 +14,7 @@ query getTournamentTopBySlug($slug:String,$top:Int)
events events
{ {
name name
numEntrants
videogame videogame
{ {
id id
@ -37,14 +39,20 @@ query getTournamentTopBySlug($slug:String,$top:Int)
placement placement
entrant entrant
{ {
id
participants participants
{ {
gamerTag gamerTag
prefix prefix
player player
{ {
id user
twitterHandle {
authorizations(types: [TWITTER])
{
externalUsername
}
}
} }
} }