query($username:String!) {
user(login: $username) {
contributionsCollection {
contributionCalendar {
totalContributions
weeks {
contributionDays {
contributionCount
weekday
date
}
}
}
}
}
}
{
"username": "szabgab"
}
- Defaults to the last 1 year
query($username:String!, $from:DateTime, $to:DateTime) {
user(login: $username) {
contributionsCollection(from: $from, to: $to) {
contributionCalendar {
totalContributions
weeks {
contributionDays {
contributionCount
weekday
date
}
}
}
}
}
}
{
"username": "szabgab",
"from": "2013-03-20T00:00:00Z",
"to": "2013-04-20T00:00:00Z"
}
- Can set the start-date (defaults to now - 1 year)
- Can set the end-date (defaults to start-date + 1 year)