Skip to content

add minAttendees and maxAttendees fields to TournamentPageFilter input object #184

@yoonthegoon

Description

@yoonthegoon

It would allow for queries that are partially possible with the site already.
For example, this:

https://www.start.gg/search/tournaments
?refinementList[events.videogame.id]=1386
&refinementList[state][0]=3
&refinementList[hasOnlineEvents][0]=false
&page=1
&configure[hitsPerPage]=15
&configure[filters]=profileType:tournament
&range[startAt][min]=1641013200
&range[numAttendees][min]=1001

can become this:

query {
  tournaments(
    query: {
      page: 1
      perPage: 500
      sortBy: "startAt asc"
      filter: {
        videogameIds: [1386]
        afterDate: 1641013200
        hasOnlineEvents: false
        # maybe something like this idk
        minAttendees: 1001
      }
    }
  ) {
    nodes {
      id
      name
      startAt
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions