Open g14a opened 4 years ago
For the ContributionsCollection it expects a DateTime so I have set the values by converting time to a DateTime like this:
"fromTime": githubv4.DateTime{Time: fromTime},
"toTime": githubv4.DateTime{Time: toTime},
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 :)