diff --git a/lokrez/queries/getCharsByPlayersId.gql b/lokrez/queries/getCharsByPlayersId.gql new file mode 100644 index 0000000..a53a996 --- /dev/null +++ b/lokrez/queries/getCharsByPlayersId.gql @@ -0,0 +1,49 @@ +query getCharsByTournamentIdAndPlayerIds($tournamentId:ID, $playerIds:[ID]) +{ + tournament(id:$tournamentId) + { + events + { + name + sets + ( + perPage:100 + page:1 + filters: + { + playerIds: $playerIds + } + ) + { + pageInfo + { + total + } + + nodes + { + games + { + winnerId + selections + { + selectionType + selectionValue + entrant + { + participants + { + player + { + id + } + } + } + } + } + } + } + } + } +} + diff --git a/lokrez/queries/getTournamentTopById.gql b/lokrez/queries/getTournamentTopById.gql new file mode 100644 index 0000000..8971b7a --- /dev/null +++ b/lokrez/queries/getTournamentTopById.gql @@ -0,0 +1,60 @@ +query getTournamentTopBySlug($id:String,$top:Int) +{ + tournament(id:$id) + { + slug + name + events + { + name + videogame + { + id + name + } + + standings( + query: + { + perPage: $top + page: 1 + } + ) + { + pageInfo + { + total + } + + nodes + { + placement + entrant + { + participants + { + player + { + id + gamerTag + prefix + } + } + + seeds + { + phase + { + name + numSeeds + } + groupSeedNum + } + } + } + } + } + } +} + + diff --git a/lokrez/queries/getTournamentTopBySlug.gql b/lokrez/queries/getTournamentTopBySlug.gql new file mode 100644 index 0000000..53506ca --- /dev/null +++ b/lokrez/queries/getTournamentTopBySlug.gql @@ -0,0 +1,60 @@ +query getTournamentTopBySlug($slug:String,$top:Int) +{ + tournament(slug:$slug) + { + id + name + events + { + name + videogame + { + id + name + } + + standings( + query: + { + perPage: $top + page: 1 + } + ) + { + pageInfo + { + total + } + + nodes + { + placement + entrant + { + participants + { + gamerTag + prefix + player + { + id + } + } + + seeds + { + phase + { + name + numSeeds + } + groupSeedNum + } + } + } + } + } + } +} + +