You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to construct a query to retrieve contribution calendar of a user and my query looks like the following as a struct.
I want to know how to pass a timestamp as a variable in cases of from and to. When I do the following I get an error saying
2020/08/05 17:36:33 ERROR: Variable $fromTime is declared by but not used, but the other variables are being passed normally.
Did anyone encounter this before?
My query looks like the following:
var StatsQuery struct {
User struct {
ContributionsCollection struct {
ContributionCalendar ContributionCalendar
} `graph:"contributionsCollection(from: $fromTime, to: $toTime)"`
} `graphql:"user(login: $user)"`
}
I'm passing $fromTime and $toTime within a one year gap, in this format:
Hello!
I'm trying to construct a query to retrieve contribution calendar of a user and my query looks like the following as a struct.
I want to know how to pass a timestamp as a variable in cases of
from
andto
. When I do the following I get an error saying2020/08/05 17:36:33 ERROR: Variable $fromTime is declared by but not used
, but the other variables are being passed normally.Did anyone encounter this before?
My query looks like the following:
I'm passing
$fromTime
and$toTime
within a one year gap, in this format:My variables are in this format:
Thank you in advance :)
The text was updated successfully, but these errors were encountered: