Skip to content
Contents

Reference · Query

weeks

🗓️ Get the ended Weeks with associated results for each member, oldest first unless sort says otherwise

Arguments

NameTypeDescription
limitIntMaximum number of weeks to return (all when omitted)
sortSortOrder of the weeks, by week number Default: ASC

Returns

[Week]

Example

{
  weeks(limit: 4, sort: DESC) {
    uid
    startDate
    scores {
      user { name }
      score
      level
      streak { end best }
    }
  }
}