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)
{
events
{
name
numEntrants
sets
(
perPage:100
page:1
filters:
{
playerIds: $playerIds
entrantIds: $entrantIds
}
)
{
@ -30,10 +31,6 @@ query getCharsByTournamentIdAndPlayerIds($tournamentId:ID, $playerIds:[ID])
selectionType
selectionValue
entrant
{
participants
{
player
{
id
}
@ -43,7 +40,5 @@ 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)
{
id
slug
name
startAt
@ -13,6 +14,7 @@ query getTournamentTopBySlug($id:String,$top:Int)
events
{
name
numEntrants
videogame
{
id
@ -37,14 +39,20 @@ query getTournamentTopBySlug($id:String,$top:Int)
placement
entrant
{
id
participants
{
gamerTag
prefix
player
{
id
twitterHandle
user
{
authorizations(types: [TWITTER])
{
externalUsername
}
}
}
}

View File

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