Tournaments by Owner

In this example, we will query for upcoming tournaments filtered to particular owner (a user). Please note that this query will not retrieve all tournaments the user was an admin for. It will only return tournaments which that user created.

Example

  • Request
  • Response
query TournamentsByOwner($perPage: Int!, $ownerId: ID!) {
tournaments(query: {
perPage: $perPage
filter: {
ownerId: $ownerId
}
}) {
nodes {
id
name
slug
}
}
},
{
"ownerId": 161429,
"perPage": 4
}