Skip to content
Jorge Alvarez edited this page Dec 28, 2020 · 1 revision

Rules

A rule links a reward with the conditions needed to achieve it. If there are no dates it will be available always if there is any date it will be available starting or until the dates indicate.

stars_at: (T) the date when this rule will become available. Can be blank.

ends_at: (T) The date when this rule will stop to become available. Can be blank.

If only start date is provided only activities with a date equal or greater than the start date will count.

If only end date is provided only activities with a date equal or lower than the end date will count.

If both dates are provided only activities between those dates will be counted.

For a rule to be valid ALL conditions must be fulfilled.

      query {
        rules(id: "ID") {
          startsAt
          endsAt
          reward {
            name
          }
          conditions {
            id
          }
        }
      }
Clone this wiki locally